I have a xamdatatree built into a popup control that launches from a parent grid.
If I select a node at the 'bottom' of the popup for the tree, the node expands, and the scrollbar on the popup/tree shows that there is more data below, but the tree itself does not scroll the expanded node into view.
Are there any exposed properties in the xamdatatree that allow you to 'scrollintoview' like you would in the xamdatagrid or other controls?
Or has anyone constructed anything with the xamdatatree control that would allow you to do this?
Thanks.
Hello izzyschwatz,
XamDataTree support scrolling by itself, when nodes are not visible and when you drag down the tree or up, those nodes come into view. On the other hand there is a public method ScrollNodeIntoView(XamDataTreeNode node) which you can use to scroll to the desired location. Let me know if that is answering your question!
Regards,
Nikola
Hi Nikola,
Thank you for the response, and it helps to know that such a method does indeed exist.
The problem though, is that it's not the node itself that needs to be scrolled into view. The node is shown, and the user is selecting it.
When they select it and 'expand' the node sub tree, I need to have the tree scroll the entire sub tree into view.
Right now, even with the ScrollNodeIntoView method, when you expand the tree, it does nothing but show the change in the scroll bar, and the expanded sub tree is sitting off the bottom of the screen.
I need to be able to have the user select the node, force the node to expand, and then have the entire sub tree scroll up into view on the screen.
Thanks again.