Completed
Last Updated: 04 May 2023 10:07 by ADMIN
Release 4.2.0 (26/04/2023)
Kyler
Created on: 19 Mar 2022 16:54
Category: TreeView
Type: Bug Report
4
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)

 

 

 


11 comments
ADMIN
Svetoslav Dimitrov
Posted on: 04 May 2023 10:07

Hello Michael,

Can you modify this REPL snippet so that we can investigate the issue you are facing? 

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Michael
Posted on: 27 Apr 2023 15:55

I just updated to 4.2.0 and the treeview checked items get cleared out when expanding/collapsing!

Attached is my original writeup.

https://feedback.telerik.com/blazor/1592705-children-lose-their-checked-state-when-loaded-on-demand-via-onexpand

Urgent help needed.

Thanks

ADMIN
Svetoslav Dimitrov
Posted on: 08 Feb 2023 09:42

Hello Michael,

We always try and provide workarounds for both bugs and feature requests, where bugs have higher priority for workarounds. Currently, I am very sorry to report that there is nothing we can offer as a workaround for the current issue. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Learn about the important changes coming in UI for Blazor 4.0 in January 2023!
Michael
Posted on: 01 Feb 2023 15:48

For a workaround, is there a way to programmatically disable the OnExpand event? While user is "Checking" items in a "check mode", the event doesn't fire until out of "check mode"...other than having another TreeView instance.

Thanks for any help, critical component in our app!

mk

 

ADMIN
Svetoslav Dimitrov
Posted on: 01 Feb 2023 14:09

Hello Michael,

I am sorry to read that this bug is causing frustration and issues in your application. I have raised the priority of the GitHub issue in our repository so that it can be prioritized earlier. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Learn about the important changes coming in UI for Blazor 4.0 in January 2023!
Michael
Posted on: 26 Jan 2023 02:40
This is quite an old bug, it is a feature that is really needed by my organization. There is no workaround (other than not using onExpand). It is in an "Unplanned" state. I'm now running Blazor UI 4.0 and do not have a solution or an estimated "Get well" date. Telerik Support has been amazing over the decade I've been using them, but this is the longest open item and one of the reasons I got Telerik to begin with (a nice TreeView component). Any update would be very helpful. Thanks.
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/.