File manager tree view custom sort

0 Answers 148 Views
FileManager TreeView
jessen
Top achievements
Rank 1
jessen asked on 25 May 2022, 01:36 PM

Hi Team,

I am using file manager and I wanted to sort tree view elements in file manager based on some custom logic. Now by default it is sorting based on name. Is there any way to implement custom sorting?

Veselin Tsvetanov
Telerik team
commented on 30 May 2022, 06:33 AM

Yes, you can apply custom sorting to the TreeView of the FileManager by retrieving a reference to the TreeView DataSource:

var tv = $(".k-filemanager-treeview").getKendoTreeView();
var ds = tv.dataSource;

And then, following the implementation from this knowledge base article:

https://docs.telerik.com/kendo-ui/knowledge-base/sort-child-nodes

jessen
Top achievements
Rank 1
commented on 07 Jun 2022, 12:37 PM

Thank you so much

No answers yet. Maybe you can help?

Tags
FileManager TreeView
Asked by
jessen
Top achievements
Rank 1
Share this question
or