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

In "drop" event: access the datasource element beloging to the source/target node

3 Answers 8 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael Hilgers
Top achievements
Rank 1
Michael Hilgers asked on 10 Jun 2014, 10:46 AM
Hey everone,

my TreeView is bound to a DataSource, which containts Id, Parentid etc. for every node created.

How can i access theres data in the "drop" event? I need them to perform the correct database operations.

Regards,
Michael

3 Answers, 1 is accepted

Sort by
0
Michael Hilgers
Top achievements
Rank 1
answered on 11 Jun 2014, 07:00 AM
Sorry for the typos, but post's can't be edited any more like in the old forums ...
0
Alex Gyoshev
Telerik team
answered on 12 Jun 2014, 07:44 AM
Hello Michael,

You can access the data for each node by calling the dataItem method on the sourceNode and destinationNode event arguments, like shown in this jsBin.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Michael Hilgers
Top achievements
Rank 1
answered on 16 Jun 2014, 07:30 AM
That's it. Thank you Alex!
Tags
TreeView
Asked by
Michael Hilgers
Top achievements
Rank 1
Answers by
Michael Hilgers
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or