This question is locked. New answers and comments are not allowed.
HI,
I'm using the MVC Telerik Treeview control, and using the OnDataBinding to load the contents from the server:
<%= Html.Telerik().TreeView()
.Name("AjaxTreeView")
.ClientEvents(events => events
.OnDataBinding("onDataBinding")
)
%>
function onDataBinding(e) {
var path = mycontrollerpath;
$.get(path, function(data) {
var treeview = $('#AjaxTreeView').data('tTreeView');
treeview.bindTo(data);
});
}
How do I Select the initially selected item/index?
I've tried using OnDataBound client event - but it doesnt seem to fire.
I'm using the MVC Telerik Treeview control, and using the OnDataBinding to load the contents from the server:
<%= Html.Telerik().TreeView()
.Name("AjaxTreeView")
.ClientEvents(events => events
.OnDataBinding("onDataBinding")
)
%>
function onDataBinding(e) {
var path = mycontrollerpath;
$.get(path, function(data) {
var treeview = $('#AjaxTreeView').data('tTreeView');
treeview.bindTo(data);
});
}
How do I Select the initially selected item/index?
I've tried using OnDataBound client event - but it doesnt seem to fire.