Hi all,
I use Razor to create a treeview. If I user Items.Add each element I can use checkboxes, else if i user Datasource I checkboxes not working. Please tell me any problem?
@(Html.Kendo().TreeView()
.Name("treeview")
.Events(events => events
.Select("onSelect")
)
.Checkboxes(checkboxes => checkboxes
.CheckChildren(true)
)
.DataTextField("InfoCategoryName")
.DataSource(dataSource => dataSource
.Read(read => read
.Action("GetAllCategory", "Information")
)
)
)
Best regard,
Troy
I use Razor to create a treeview. If I user Items.Add each element I can use checkboxes, else if i user Datasource I checkboxes not working. Please tell me any problem?
@(Html.Kendo().TreeView()
.Name("treeview")
.Events(events => events
.Select("onSelect")
)
.Checkboxes(checkboxes => checkboxes
.CheckChildren(true)
)
.DataTextField("InfoCategoryName")
.DataSource(dataSource => dataSource
.Read(read => read
.Action("GetAllCategory", "Information")
)
)
)
Best regard,
Troy