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
Select (highlight) a node by code
posted

Hi guys,

I would like to set selected node (or nodes) by databinding (highlight a node as if the user clicked on it)...  

I went through the online doco but couldn't find a property to bind to. Any help would be appreciated...

Thanks

Parents
  • 440
    Verified Answer
    posted

    Hi Henry,

    There is a property called SelectedNodes: public SelectedOrgChartNodesCollection SelectedNodes {get;}

    Binding directly to it will not work but you can use something like:

    foreach (var node in mySelectedNodes)

                {

                    OrgChart.SelectedNodes.Add(node);

                }

    You can see a working sample for using this property here.

    Please let me know if I can provide any further assistance.

    Best,

    Ivo

Reply Children