check/uncheck checkbox from code effects parent node checkbox functionality

2 posts, 1 answers
  1. Anil
    Anil avatar
    58 posts
    Member since:
    Nov 2007

    Posted 05 May 2010 Link to this post


    I need an urgent help in tree-view control. I am not able to attach the  sample project which has the problem i am facing.
    when i am binding a boolean property to checkstate using code behind and converter as suggested the parent node is behaving in a crazy manner.
    If i check 2 out of 3 children under a parent node then parent node is showing state of checkbox as intermediate. But if i check the 3rd child also the state of parent node remains intermediate which should get changed to on(checked) or if i uncheck one of the child node then the parent node state changes to off(unchecked) which should remain in intermediate.
    I think there is some bug in the control. but if there is some trick which can fix this will help me a lot. I tried to create a support ticket also but its showing some server error.
    Thanks for any help.

  2. Answer
    Ivan avatar
    519 posts

    Posted 07 May 2010 Link to this post

    Hello Anil,

    Thank you for contacting us.

    We suppose the problem is due to a binding to a boolean property. Please try to bind to a nullable-boolean one.

    Attached you can find both a Silverlight and a WPF examples.

    We hope this will help you.

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top