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

Treeview ensure that parent are checked when child are checked

1 Answer 118 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 11 Aug 2014, 07:42 PM
Hi,

I'm using a treeview with the checkbox to allow the user the choices of the sections to put in a report.  The problem is that if the user check of the child all the parents should also be included. So what I need is a way to check all the parentfor the user when he select a child and unckeck all childs when a parent un uncheck. Any idea on how I can achieve this?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Aug 2014, 01:40 PM
Hello,

You can use the dataSource change event in order to implement the described behavior. I created an example that demonstrates this scenario. 

Regards,
Daniel
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or