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

Reg: Maintaining the order of tree view nodes

2 Answers 11 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Vikram
Top achievements
Rank 1
Vikram asked on 03 Feb 2014, 11:07 PM
Hello, 

Is there any way I can control the order in which the items appear in tree view . 

Is there any function in Kendo which lets me control it 

Thanks 

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 07 Feb 2014, 06:30 AM
Hello Vikram,

The items in the TreeView are displayed the same way they are sorted by the dataSource, and also any change applied to the dataSource will cause the TreeView to redraw. How to sort a dataSource is covered here:

http://docs.telerik.com/kendo-ui/api/framework/datasource#methods-sort

Or you sort it initially like pretty much the same way:

http://docs.telerik.com/kendo-ui/api/framework/datasource#configuration-sort

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vikram
Top achievements
Rank 1
answered on 07 Feb 2014, 08:00 PM
Thank you for the reply . 
Tags
TreeView
Asked by
Vikram
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Vikram
Top achievements
Rank 1
Share this question
or