0
林實施一些組織結構圖,即時通訊新的MVC和劍道.. 如何實現的onclick事件thekendo樹視圖在劍道樹視圖節點onclick事件,MVC
Html.Kendo().TreeView()
.Name("TreeViewTemplateBiding")
.TemplateId("TreeViewTemplate")
.BindTo((IEnumerable<OrgChart.Models.NodeViewModel>)ViewBag.Tree, (Kendo.Mvc.UI.Fluent.NavigationBindingFactory<TreeViewItem> mappings) =>
{
mappings.For<OrgChart.Models.NodeViewModel>(binding => binding.ItemDataBound((item, node) =>
{
item.Id = node.Id;
item.Text = node.Title;
//item.Expanded = node.Expanded;
})
.Children(node => node.Children));
})
)
感謝ü這工作得很好,但我需要選擇item.id值...你可以幫我解決這個問題 – Bharath