Hi,
Can anyone let me know how to scroll to checked node in webdatatree which is checked from code behind. as user will not able to know whether it is checked or not.
So, if we scroll to the checked node automatically it will be identified by user.
Thanks in Advance.
Hello Anil,
I am attaching a sample, implementing the desired functionality.
Let me know if you have any questions regarding this matter.
Hi Nikolay,
Thanks for your reply,
i have kept the code provided by you but i am getting error checkedNode is "undefined".
I'm just checking if you have any further questions regardint this matter.
Hi Anil,
You can do this in the Initialize client-side event of WebDataTree, for example:
function InitTree(sender, eventArgs) {
var checkedNode = sender.get_checkedNodes()[0];
var treeElement = sender.get_element();
sender._scrollToNode(checkedNode, treeElement);
}
Feel free to contact me if you have any questions.