This is a migrated thread and some comments may be shown as answers.

Checkbox misbehaving when load on demand is used

3 Answers 170 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Niranjan
Top achievements
Rank 1
Niranjan asked on 19 Mar 2018, 07:55 AM

Hello,

 

I have a treeview that implements load on demand which is working fine for me. I use the treeview.append() method to append children of the given node.

But strangely, in some scenarios the checkbox behaviour is not proper. I have set checkChildren: true in my code.

 

A scenario to reproduce this is,

 

check a node in the root level of the tree.

Expand two levels down in the tree.

Uncheck the root level node.

Expand some other node at level two belonging to the root level node unchecked in previous step,

the nodes still seem to be checked even though their parent node is unchecked.

 

Any help in this regard would be higly appreciated.

 

Thanks,

Niranjan

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 20 Mar 2018, 12:40 PM
Hello Niranjan,

I have tried several different approaches to reproduce the described behavior with the following Dojo example to no avail. I assume that I am missing some important implementation details, therefore may I ask you to modify the above Dojo example, so that the issue is replicated?

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Niranjan
Top achievements
Rank 1
answered on 23 Mar 2018, 07:44 AM

Hello,

I am unable to reproduce the same scenario here, but, i feel if you bind the data using a remote service, where each level of the hierarchy has a separate controller method to fetch the data is what is creating the issue.

0
Dimitar
Telerik team
answered on 26 Mar 2018, 01:12 PM
Hello Niranjan,

I am not quite sure that I can understand the described scenario correctly. Therefore, may I ask you to elaborate a bit more on the binding scenario? Also, it would be most helpful if you could isolate the issue in a runnable solution and then send it back to us for additional review.

In case you are using the Telerik UI for ASP.NET MVC bundle, please refer to the following Ajax Binding article, where you could find a detailed example on how to setup the widget correctly with the TreeView HtmlHelper:


Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeView
Asked by
Niranjan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Niranjan
Top achievements
Rank 1
Share this question
or