0
如何在數據加載後讓我的TreeView展開?如何在DataSource完成後展開閱讀完成加載Telerik MVC TreeView(Kendo UI)
@(Html.Kendo().TreeView()
.Name("OrganizationTree")
.HtmlAttributes(new { @class = "demo-section" })
.DataTextField("Name")
.DragAndDrop(true)
.ExpandAll(true)
.Events(events => events
.Select("onOrgSelect")
.Drop("onOrgDrop")
)
.DataSource(dataSource => dataSource
.Model(m=> m
.Id("ID")
.HasChildren("HasChildren")
)
.Read(read => read
.Action("Organizations_Read", "Organizations")
)
)
)