Hi,
We are using XAMData tree for showing parent and child node data. We want to show multiple parent and multiple child node should be highlighted.
For that we have bind IsSelected property for children set it true, but not showing multiple highlighted node.
Apart from that also we are using NodeLine visibility, but in some children, child node are not showing.
Please suggest for that.
Thanks
Hello Pri and thank you for posting!
Would you please let me know how do you try to select the child nodes? Are you binding the SelectedDataItems property pf the grid? If that is the case please note that the collection the property is bound to should be of type object. Can you share a sample project so I can have a look at the scenario because I am not sure what is causing the missing child nodes on your side? Thank you in advance.
PFA.
Hi Pri,
It seems that the project you have attached is an empty WPF project. Would you please double check if that was the solution that illustrates the scenario on your side? Thank you.
I am checking if this is still an issue for you and if you were able to reproduce it in a sample project.
Pri,
Thank you for sharing a sample application. I have reviewed the code and I noticed that there is no child nodes in the source collection so it is expected that no child nodes are displayed. I have added a child element for each parent in the data source and the children are illustrated. I have also noticed that you are not binding the IsSelectedMemberPath of the tree though you have an IsSelected property in your ViewModel and you have a SelectedDataItem property bound to an empty collection of objects (it should be an array of objects).Please find the modified sample application attached and let me know if you need additional assistance.
Hello Pri,
I am just checking if you had a chance to look into this and if you would like any further assistance on the matter.