Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
XamDataTree calling ScrollNodeIntoView on a node that is already in the view
posted

Hi guys,

While using a XamDataTree and trying to programmatically enter edit mode for a given node, I am running into the following issue:

If I call EnterEditMode or ScrollNodeIntoView for a XamDataTreeNode that is already visible in the tree, it will automatically scroll that node to either the top or the bottom of the view. This seems to be the desired behavior for nodes that were not previously in the view, but I feel like if a node is already in the view, then the tree should just keep its scroll position and not jump around.

Is there any way I can override this behavior and prevent the tree from scrolling a node into the view when it's already visible?

Thanks,

Andrew

Parents
  • 35130
    Offline posted

    Hello Andrew,

    I have been investigating into the behavior you are describing, but I cannot seem to reproduce the behavior you are seeing where if a XamDataTree node is already in view, that the ScrollNodeIntoView or EnterEditMode methods scroll it further. I have tested this behavior against version 20.1.20201.26 in Infragistics for WPF 2020 Volume 1.

    I am attaching the sample project I used to test this. Please test this sample project on your machine as this may further indicate why this behavior is happening on your end. If this behavior happens with the sample project, this indicates a difference in either the assembly versions you are referencing or potentially something environmental. If the sample project does work correctly though, this could indicate an issue with your application and it would be helpful if you can either modify the sample project I am sending you and send it back, or provide an isolated one of your own?

    Please let me know if you have any other questions or concerns on this matter.

    XamDataTreeScrollIntoViewTest.zip

Reply Children