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));
})
@(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));
})