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
1095
Unknown Number of Levels
posted

How do I define the itemssource and NodeLayout when the number of children a node and have, and when a child and have children is not universal, an example

Reports To

Board of Directors

-Name 1

--Child

---Childs Child

-Name 2

--Child

-Name 3

--Chid

---Childs Child

----Childs childs child 

The levels can go on for several tiers depending on a setting

Parents
  • 30945
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and you can use the GlobalNodeLayouts collection and add the NodeLayouts for your data there. You can use self-reference data, which will allows you to define a single NodeLayout and using it, to show all levels of your data. Also, if your data is a collection of a given type that has a child collection from different type, you can define a NodeLayout for each different type of data, that your XamDataTree will have, in order to show all the available data. I have created a sample application for you, that shows both scenarios.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    SelfReferenceAndHierarchicalData.zip
Reply Children
No Data