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

How to get the Parent's Node name & Id on its child double click

1 Answer 279 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 11 Mar 2014, 10:37 AM
Hi,
I have a tree view which is of 3 levels. First Level is controls , second level is its properties and third level is having just text with getProperty and setProperty.
Now  when user double clicks getProperty or setProperty text, I need to have its immediate parent node name(MaxLength) and its id to be displayed.



As shown above, when user double clicks on getProperty, I need to display MaxLength property and its Id.

Here is my json structure.  
Let me put my query in otherway, if I double click getProperty under MaxLength, I need to bind the GetPropertyCode element shown in Json structure located under items :Array[18] 0:object.

Please help me how to achieve using Kendo UI.

 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 12 Mar 2014, 04:51 PM
Hi Ajay,

This behavior could be achieved using a double click event handler that gets the parent node, as shown in this example.

Regards,
Alexander Popov
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
Ajay
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or