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

How to get all or specific nodes of treeview?

1 Answer 1000 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
PL
Top achievements
Rank 1
PL asked on 29 Oct 2014, 12:37 PM
Hi,

We are trying to get all or specific nodes of treeview. We are unable to do this with following code,

var testTreeView = $("#treeViewIdStr").data("kendoTreeView");

Above code returnds undefined data.

Is there any other way?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 30 Oct 2014, 09:21 AM
Hello Pritesh,

The checkboxes example shows how to traverse all items in the TreeView (see the checkedNodeIds function). You can get specific items via the DataSource get method.

Regards,
Alex Gyoshev
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
PL
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or