Expand Collapse in TreeView #1136

Closed
opened 2026-01-29 17:49:26 +00:00 by claunia · 1 comment
Owner

Originally created by @GioeEng on GitHub (Feb 23, 2024).

In the TreeView control in Data-Binding, when you collapse and expand an element a few times, a blocking error occurs.
The operation is also easily replicated on the site demo.

The problem occurs on line 259 of RadzenTreeItem.razor.cs trying to do an Insert of an element beyond the Count of the collection.

The error is caused by the new part related to the new 'KeyPress' functions defined in the latest versions.

Going back to commit 1a3643d6 the problem does not occur.

Originally created by @GioeEng on GitHub (Feb 23, 2024). In the TreeView control in Data-Binding, when you collapse and expand an element a few times, a **blocking error occurs**. The operation is also **easily replicated on the site demo**. The problem occurs on line 259 of RadzenTreeItem.razor.cs trying to do an Insert of an element beyond the Count of the collection. The error is caused by the new part related to the new 'KeyPress' functions defined in the latest versions. Going back to commit 1a3643d6 the problem does not occur.
Author
Owner

@Nardo86 commented on GitHub (Feb 23, 2024):

I can confirm, this also happens in https://blazor.radzen.com/tree-data-binding when collapsing and expanding a message appears at the bottom "An error has occurred. This app may no longer respond until reloaded. [Reload]"

@Nardo86 commented on GitHub (Feb 23, 2024): I can confirm, this also happens in https://blazor.radzen.com/tree-data-binding when collapsing and expanding a message appears at the bottom "An error has occurred. This app may no longer respond until reloaded. [Reload]"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1136