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:
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