RadTree using TriStateBoxes + CheckChildNodes lose states

2 posts, 0 answers
  1. Development Team
    Development Team avatar
    1 posts
    Member since:
    Feb 2007

    Posted 13 Oct 2010 Link to this post

    The Radtree is within a step of a wizard control with chekboxes=”true”, TriStateBoxes=”true”, CheckChildNodes=”false” as it’s behaviour.

    There is a single top level node and two to three levels of child nodes. If you tick the check box on a 2nd level node, with none of its child nodes selected, when you then change steps in the wizard, and then go back to the step with the radtree, the node you have selected appears un-checked. To tick the node again, you seem to have to click the tick box twice.

    On submitting the wizard and iterating through the checked nodes in the code behind like this:

    IList<RadTreeNode> nodeCollection = rdtGroups.CheckedNodes;


    foreach (RadTreeNode CheckedGroupNode in nodeCollection)





    If I put a breakpoint in this loop, I can see that the node that appeared to have unchecked itself is actually in the tree controls ‘CheckedNodes’ collection, but it’s ‘CheckedState’ property reads ‘Unchecked’.

    Does anyone know a fix or work around for this? Am I missing something here, that I am doing wrong ?

  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 18 Oct 2010 Link to this post

    Hi Development Team,

    This is a known issue for RadTreeView and we have fixed that with automatic enabling of CheckChildNodes.

    You need to enable CheckChildNodes and this will resolve the conflicts between CheckedState and Checked properties.

    Hope this is helpful for you!

    Nikolay Tsenkov
    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
Back to Top