Hi,
I am using xamorgchart in my wpf project and it's working fine but on screen on opening paren nodes all child nodes which are childs of parent's child also open however only 1 level of childs should open. I did not any kind of property like IsExpanded on design level that should stop all childs nodes from opening. please suggest.
Regards
Hitesh
Hi Andrew,
Thanks, this is working fine by setting LevelsToExpand expand property but in my xamdatagrid i need to expand 1 child though other child at same level should be collapsed and need to expand upon click of + indicator. this is bit trickey though we have different TargetType(and so orgchartnodelayout) for both these childs. please suggest how to achieve this.
Hello Hitesh,
Thank you for your post.
By default, the XamOrgChart is configured to expand every child node of a parent node when that parent node is expanded. This can be prevented by setting the XamOrgChart's LevelsToExpand property. This property takes an int as a parameter, and is unset by default. Once set, it will determine the number of child bands that should be expanded by the XamOrgChart upon a parent node expanding. As you are looking to only open a single level of children in the chart, I would recommend that you set this property to 1.
I hope this helps. Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support