RadTreeView Child nodes not checked when parent will checked.

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    9 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 Link to this post

    Hello All,

    I am using the RadTreeView in my project and I want that when I will do checked the parent element then the child node of that parent will automatically checked by the code in the code behind file. I have also attached the scree-shot for the same.

  2. Martin Ivanov
    Martin Ivanov avatar
    1442 posts

    Posted 27 Aug 2014 Link to this post

    Hello Rahul,

    The RadTreeView control have TriState checkbox support. In other words instead of two states (checked, unchecked), there are three (additional indeterminate state). Basically, if you have a tree view item with few child nodes and you check one of the nodes, the parent will go in indeterminate state. If all children are checked, the parent will be checked automatically. If you check the parent, all children will be checked automatically. You can take a look at the CheckBox Support help article for more information on that matter.

    However, note that the checkbox support has few known issues and this is why we recommend implementing custom checkbox functionality. You can see how to do it in the Implement a Tri-State CheckBox logic using MVVM help article.

    I hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top