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
185
Sorting of nodes
posted

Hi,

Is it possible to influence the order in which the nodes are displayed?

Lets assume we have a chart with a parent, three children, each with 3 grandchildren.

I want the oldest child to always appear on the left, how can I do this?

Maybe even allow the user to choose, the eldest first on the left, or the youngest first.

Thanks.

Parents
No Data
Reply
  • 34510
    Offline posted

    Hi Henri,

    If the XamOrgChart is bound to a collection of data then sorting the collection will result in the XamOrgChart nodes reflecting the changes.  So for your example you can sort the underlying collection from eldest to youngest and this will automatically be updated in the XamOrgChart.

Children