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

Children of selected parent node

1 Answer 355 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 01 Aug 2016, 08:16 PM

Consider the following example: http://embed.plnkr.co/AZsXtbXTpaswliEoE2fq/

 

When checking child nodes you can see that the console.log outputs the correct child nodes. When selecting a parent node I get an event for the parent node specifically and the children are programmatically checked as the parent is checked. 

Is there an easy way to know which child nodes gets selected. I'm only really interested in the check state of the deepest level. 

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Aug 2016, 02:07 PM
Hello Kiran,

I am not sure I completely understand what you are trying to achieve. However, the selected node can be found in the select event of the TreeView. The select event is giving access to the e.node element, which represents the selected node:

http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#events-select

Let me know if you need additional assistance with the Kendo UI TreeView API.

Regards,
Stefan
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
TreeView
Asked by
Kiran
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or