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

How to stop check/uncheck of parents

1 Answer 95 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 04 Mar 2016, 06:39 PM

Is there a way to all checkChildren to be true but not have it check the parents?  I need the checking down the tree but not up the tree.  Checking or unchecking a child should not affect its parents state.

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 08 Mar 2016, 11:37 AM
Hi Jason,

The checkChildren property is designed to allow checking/unchecking all child items and to indicate the selected state of those child items and it will not be possible to achieve the desired behavior with checkChildren set to "true". However, you could try to set it to "false" and use the "check" event to manually check/uncheck all child items. This will allow you to keep the checked state of the parent items when you click on a child item.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TreeView
Asked by
Jason
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or