Unplanned
Last Updated: 19 Sep 2022 10:53 by ADMIN
Kyler
Created on: 19 Mar 2022 16:54
Category: TreeView
Type: Bug Report
2
TreeView checkbox state is not maintained when using OnExpand

Checking a checkbox of a on demand-loaded child then collapsing and reopening its parent makes the checkbox disappear.  However, it is still checked in the CheckedItems collection, but just not in the UI.  See this REPL example.  Steps...

1. Expand a top level item

2. Check its child checkbox

3. Collapse the top level item

4. Expand it again

Result: checkbox gone (in the UI)

 

 

 


5 comments
ADMIN
Svetoslav Dimitrov
Posted on: 19 Sep 2022 10:53

Hello Brian,

Can you reproduce the issue in this REPL link? A reproducible code snippet will help us greatly to determine if the bug still persists.

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

n/a
Posted on: 13 Sep 2022 14:19
This still appears to be still broken. We have a large amount of data for the treeview so we need to dynamically load the nodes.  There are some nodes that will be pre-selected (handled in OnExpanded).  The problem is collapsing and expanding nodes causes checkboxes to disappear without any of our code being executed.  In addition selecting another child node causes all the other checked nodes to magically be checked.  We cannot use this control.

The control seems to work fine as long as OnExpanded is not used but that is the core functionality for dynamic loading/checkbox selection.
ADMIN
Svetoslav Dimitrov
Posted on: 29 Mar 2022 13:27

Hello Kyler,

The bug that has been fixed as part of our 3.1.0 release is connected to the OnCollapse event, whereas the issue you have reported is for the OnExpand event and the load-on-demand. That is why these two issues are treated differently. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kyler
Posted on: 25 Mar 2022 20:00

FYI, according to the [notes from the 3.1.0 release](https://www.telerik.com/support/whats-new/blazor-ui/release-history/ui-for-blazor-3-1-0), this has been fixed!  However, the REPL example above still fails.  Perhaps it is not on the latest version.  And my local installation still fails (not positive I'm on 3.1.0 locally, despite having updated the reference in project file to be 3.1.0 and cleaning and rebuilding).

Is there a delay of the latest releases being... released?

 

ADMIN
Svetoslav Dimitrov
Posted on: 25 Mar 2022 14:29

Hello Kyler,

Thank you for reporting that to us! As a small token of appreciation, I have updated the Telerik points for your account.

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.