<%:
Html.Telerik().TreeView()
.Name("ZebTree")
.ExpandAll(false)
.ClientEvents(events => events.OnSelect("TreeView_onSelect"))
.BindTo(Model , map =>
{
map.For<TreeViewBind.Models.Category>(bind => bind.ItemDataBound((item, category) => { item.Text = category.CategoryName; }).Children(category => category.Products));
map.For<TreeViewBind.Models.Product>(bind => bind.ItemDataBound((item, product) => { item.Text = product.ProductName;}));
}
)
%>
Above is the code for generating tree in telerik mvc. I want to perform action by selecting the node. When somebody click on specific node i want it to navigate to about page and passing the text of that node as argument to about page.
Yo guys,
Actually there is a method called Action which you can use to specify the action which you want your item to point to. You probably don’t see it because the intellisence is quite confused. You can be a bit more specific like this:
I hope this is what you are looking for.