This question is locked. New answers and comments are not allowed.
Hi all ,
I'm working with treeview control of Telerik ASP.NET MVC .
Currently , I have faced with an issue.Because I use LoadOnDemand on my treeview and I want to select one child element after expanding parent element.
I use JavaScript function to do it. But I can't find any child element because tree view does not finish its loading.
Here is my temp solution : I use setTimeout and set time is 1000 ms
function selectChildNode{
////do some thing
parentNode.expand();
setTimeout(function (){
//do something
select(childNode);
},1000);
}
I think the below solution is not good because we have to depend on time (1000 ms).
I hope we have a callback function for this. But I can't find out something like that.
Anyone can help me to give other solution ?
Thanks all so much.
I'm working with treeview control of Telerik ASP.NET MVC .
Currently , I have faced with an issue.Because I use LoadOnDemand on my treeview and I want to select one child element after expanding parent element.
I use JavaScript function to do it. But I can't find any child element because tree view does not finish its loading.
Here is my temp solution : I use setTimeout and set time is 1000 ms
function selectChildNode{
////do some thing
parentNode.expand();
setTimeout(function (){
//do something
select(childNode);
},1000);
}
I think the below solution is not good because we have to depend on time (1000 ms).
I hope we have a callback function for this. But I can't find out something like that.
Anyone can help me to give other solution ?
Thanks all so much.