Hello,
I'm not getting my desired result here. Assume you have a Person class that has two properties called SubOrdinates and Friends. Both properties are ObservableCollection with Person classes.
Now, how can I achieve an organisation chart where the SubOrdinates property is used, the depth is unknown and the Friends property is not used at all for rendering the org chart.
It seems that when using GlobalNodeLayout, the key (name of the property with child nodes) is ignored and all properties of Person types are used. I looked at the Hierarchical Node Layout, but there the depth must be known. Can the event NodeLayoutAssigned be used for this? How?
/Emil
Hello Emil,
I have been researching your issue and have created a small sample for you. In order not to show the Friends property, I handle the NodeControlAttachedEvent instead of NodeLayoutAssigned event. Please find the attached sample and feel free to contact us if you have any further questions.
Thanks for the example. It looks like it fixes my problem. I still think an easier way would be if the OrgChart would support setting a Key which specifies which property to look for when getting child nodes. Could you please forward this suggestion?
Best regards
Emil
I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12090125.
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.