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
20
Problem moving item to a parent where it has already been
posted

Hi, we encountered the following problem in our apllication: If we move items around and then back to the position where it was before in the XamDataTree, we get an exception ("Failure comparing two elements in the array"). We use "normal" Drag & Drop for some reasons instead of using the built-in mechanism. The built-in mechanism does not produce the error. But moving the items programmatically without Drag & Drop also leads to the error.
We use the MVVM pattern - moving is done completely on the viewmodels and not on the tree. I've added a small example illustrating the error. Unfortunately the above mentioned exeption does not occur - but at least you can see in the tree, that there is something wrong. After you've started the program, press the button
in the lower left corner that the example data will be created. The tree will show a top item ("Top") with 2 children. One has a "grandchild". Now drag the grandchild from one child to the other. Let it drop and then drag ist back to the first child. You will notice that the node suddenly appears to be empty but present. We use version 2016.2. I did also find no workaround for this problem. Any help will be appreciated.
Thanks in advance,
Sebastian

XamDataTreeBug.zip
Parents
No Data
Reply
  • 17475
    Offline posted

    Hello Sebastian,

    There is a known issue (development ID 227639) regarding the XamDataTree which results in the tree not determining the NodeManager a certain node belongs to correctly. It has been already fixed internally and will be available in our next Service Release. You can see the service release schedule here: http://es.infragistics.com/support/service-releases

    Let me know if you have any questions.

Children
No Data