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
355
XamDataTree Single Child Checked
posted

Is there a programatic way to ensure that a parent node can only have 1 checked child? For instance, consider the following tree:

Marital Status

            Single

            Married

 

So if you click Single the code will ensure that the Married not will not be checked. Much like a radio buttons...

Any ideas?

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Aaron,

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the NodeCheckedChanged event and uncheck the CheckBox if there is another item already checked.. Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.

    XamDataTreeCheckRestriction.zip
Children