This question is locked. New answers and comments are not allowed.
<%:
Html.Telerik().TreeView()
.Name("ZebTree")
.ExpandAll(true)
.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;}));
}
)
%>
The above one is the tree that i have created in my project. I want to know that which node the user have Selected in popup. Can somebody tell me how can i find it.
<script type="text/javascript">
function TreeView_onSelect(e) {
var treeview = $(this).data('tTreeView');
var text = ???;
alert(text);
}
</script>
Html.Telerik().TreeView()
.Name("ZebTree")
.ExpandAll(true)
.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;}));
}
)
%>
The above one is the tree that i have created in my project. I want to know that which node the user have Selected in popup. Can somebody tell me how can i find it.
<script type="text/javascript">
function TreeView_onSelect(e) {
var treeview = $(this).data('tTreeView');
var text = ???;
alert(text);
}
</script>