6 Answers, 1 is accepted
It is possible. Use the select treeview event to execute code when the user selects a node. Use the ajaxRequest splitter method to load content via AJAX in a given pane, or set the content of the pane directly via jQuery.fn.html.
Regards,Alex Gyoshev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
The select event is triggered when the TreeView selection changes, as shown in the events demo. Do you encounter a problem when using the BindTo method? If so, please provide a sample that shows this.
Regards,Alex Gyoshev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
thanks
TypeError: item.level is not a function
@(Html.Kendo().TreeView()
.Name("treeview")
.HtmlAttributes(new { @class = "demo-section" })
.DataTextField("Description")
.Events(events => events
// .Expand("onExpand")
.Select("Selected")
)
.DataSource(dataSource => dataSource
.Model(model => model
.Id("myfield")
.HasChildren("HasChildren")
)
.Read(read => read
// The action method which will return JSON
.Action("GetTreeProducts", "Home")
)
)
)
Since you created a separate thread for the TreeView issue and it deviates from the initial problem, I'm closing this thread.
Regards,Alex Gyoshev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.