My TreeView uses PopulateOnDemand. If I select a node way down the page and the node has children, the page will go back to the server to populate the children. When the page comes back, the page is scrolled all the way to the top. How do I make the page scroll back to the node that was clicked on?
I've seen various examples that use javascript:
var el = document.getElementById(el id); el.scrollIntoView();
But since I am using PopulateOnDemand, I have no idea what the element Id's are. Server side, the TreeNode tells me the ValuePath, but not the corresponding element Id. Client side, there is no concept of a ValuePath.
Server side, I've also tried tn.Select(), where tn is the clicked on node. But nothing happens.
Thanks, John