TriStateMode and checkboxes

4 posts, 0 answers
  1. Matt
    Matt avatar
    3 posts
    Member since:
    Aug 2008

    Posted 31 Mar 2010 Link to this post

    Q1 2009 SP1 Winform RadTreeView

    Why is it that 'node.Checked' doesn't seem to get evaluated when TriStateMode is False?

    If TriStateMode is True 'node.Checked' gets evaluated as expected.

    I'm trying to uncheck all checkboxes in my RadTreeView without using TriStateMode. Is there another approach I should be using (without using TriStateMode)?

  2. Matt
    Matt avatar
    3 posts
    Member since:
    Aug 2008

    Posted 02 Apr 2010 Link to this post

    Never mind. My code was at fault.
  3. Victor
    Victor avatar
    1358 posts

    Posted 06 Apr 2010 Link to this post

    Hello Matt,

    Thank you for writing.
    The recommended way to check or uncheck nodes in RadTreeView is to use the SetCheckBoxCommand.
    For example:

    RadTreeView.ExecuteBatchCommand(tv.Nodes[0], -1, new SetCheckBoxCommand(), true);
    The arguments above have the following meanings:
    tv.Nodes[0] indicates the node in the tv RadTreeView from which the command will start.

    -1 means that the whole hierarchy below Nodes[0] will be affected.

    new SetCheckBoxCommand() is obvious. Passing instances of different commands causes different changes in the nodes hierarchy (in this case checking or unchecking nodes).

    true means to check the nodes. Passing false on the other hand will uncheck them.

    Please refer to our online documentation for more information on how to use the commands, what commands are provided out of the box and how to create custom commands.

    Please write again if you have other questions.

    Best wishes,
    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.
  4. Stefan
    Stefan avatar
    2911 posts

    Posted 22 Mar 2011 Link to this post

    Hi Matt,

    Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post

    Kind regards,
    the Telerik team
Back to Top