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.
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.
Hello Anil,
I'm just checking if you have any further questions regardint this matter.
Hi Nikolay,
Thanks for your quick reply,
It worked for after a little change,i have change this
if (!checkedNode == "undefined") { sender._scrollToNode(checkedNode, treeElement); }
Thank you.
I'm glad to hear that.
Please feel free to contact us if you have any other questions.
can we do this on server side(Code Behind) without using javascript .
Thanks in Advance
Unfortunately this is not currently possible.
If you have any other questions regarding the matter, please feel free to contact us.