When I find a tree node of the WebDataTree by traversal, I want it to get into visible area to ensure it is visible to client. Is there a method like scrollTo can help me to realize it?
My WebDataTree resides in a div element. When I find the node, I can ensure all of its ancestor nodes to be expanded by JSOM, and when it exceeds the visible area, the scroll bar of div element will appear. But the ideal result is the div will scroll to ensure the node appear in the visible area.
Thanks!
Hi,
you could use the an internal function
tree._scrollToNode(node, scrollElement);
you have to call it this way: tree._scrollToNode(node, tree.get_element()); You can work with developer support to request this function to be exposed as public API.
Hope it helps.
Thanks,
Lubomir
Hi
I would like to scroll the node into view from the server side.
Cant find a way do it.
Please advise
Thanks
Abhishek