How can I change the tree behavior that when I check (by checkBox near each node) all children nodes - the parent node is checked automatically.
thanks.
Hello,
Thank you for your post. I have been looking into it and I can suggest you set the XamDataTree’s CheckBoxSettings’ CheckBoxMode Property to Auto in order to achieve the functionality you want. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
I mean to not allow the parent selection when I check the children nodes. but when I select the parent node I want all childs nodes to be selected (checked).
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thanks for all, I'm sorry I forgot to reply.
Your answer really helps me doing according what I wrote.
But I have a new question: how can I not allow to select some nodes, but allow to select their children and expand or collapsed them.
Thanks.
I have modified the sample I sent you before, so now "Item 1", "Item 2" and "Item 3" nodes cannot be checked but their children can. Basically I added a check in the NodeCheckedChanged event handler and make the node Unchecked if it meets a condition. Please let me know if this helps you or you have further questions on this matter.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I have modified the sample further, so now the event is handled using a command and behavior in order to pass the currently checked node. Please let me know if this helps you or you have further questions on this matter. Looking forward for your reply.
I have another question. I use the MVVM Pattern. when I use with a command related to NodeCheckedChanged event. how can I get in the Command Parameter the current selected node?