TriStateCheckboxes & the CheckedNodes function

3 posts, 1 answers
  1. Guillaume
    Guillaume avatar
    3 posts
    Member since:
    Nov 2008

    Posted 01 Dec 2008 Link to this post

    I was wondering if there was a way to only return fully Selected checkboxes in a TriStateCheckbox Tree...

    For example, in your demo Tree at http://demos.telerik.com/ASPNET/Prometheus/TreeView/Examples/Functionality/CheckBoxes/DefaultCS.aspx , simply selecting the "Arts" node will return "Books" and "Books/Arts" as selected...

    Is there a way that treeview.CheckedNodes can only return "Books/Arts" ?

    Thanks.

  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 02 Dec 2008 Link to this post

    Hello Marc,

    CheckedNodes returns all Nodes that are either Checked or Indeterminate.

    However, you could simply iterate through this property and obtain references to these Nodes which CheckState is set to Checked.

    Greetings,
    Simon
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Guillaume
    Guillaume avatar
    3 posts
    Member since:
    Nov 2008

    Posted 02 Dec 2008 Link to this post

    Sounds good, thanks.
Back to Top