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
60
XamDataTree assign nodes dinamically
posted

Hi,

I've got a problem here. I have to build an Tree the is made of 2 list. The first one is showm for all levels and the second one can only be displayed if the level is the last one in that branch.

Example: My first list constains the names (Node 1, Node 2) and the second list must be displayed in the Node 3. In all other levels, the secont list must not be displayed

- Node 1
       -Node 2
                -Node 3
                      HERE IS THE LAST LEVEL!
       -  Node 4
                 HERE IS THE LAST LEVEL!

  • 138253
    Offline posted

    Hello Leonardo,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I can say that you can set a collection to the XamDataTree’s ItemsSource Property and in your case the data is divided into two Lists and the control cannot have them both as ItemsSource, so my suggestion is to reorganize your data and make it hierarchical, so you can bind it to the XamDataTree.

     

    Feel free to write me if you have further questions.