How to do sorting in treeview

0 Answers 102 Views
Sortable TreeView
Robin
Top achievements
Rank 1
Robin asked on 04 Jan 2023, 07:31 AM | edited on 04 Jan 2023, 08:48 AM
How to do sorting and filtering of child nodes in .net mvc treeview using telerik?
 @(Html.Kendo().TreeView()
            .Name("treeview")
            .ExpandAll(true)
            .DataSpriteCssClassField("sprite")
            .BindTo((IEnumerable<FolderViewVM>)Model.FolderList, (NavigationBindingFactory<TreeViewItem> mappings) =>
            {
                mappings.For<FolderViewVM>(binding => binding.ItemDataBound((item, doc) =>
                {
                    item.Text = doc.Name;
                    item.Id = doc.Id.ToString();
                })
                .Children(doc => doc.Children));

            })

No answers yet. Maybe you can help?

Tags
Sortable TreeView
Asked by
Robin
Top achievements
Rank 1
Share this question
or