This is a migrated thread and some comments may be shown as answers.

TriStateCheckboxes & the CheckedNodes function

2 Answers 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 01 Dec 2008, 09:05 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 02 Dec 2008, 06:53 AM
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.
0
Guillaume
Top achievements
Rank 1
answered on 02 Dec 2008, 05:31 PM
Sounds good, thanks.
Tags
TreeView
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Simon
Telerik team
Guillaume
Top achievements
Rank 1
Share this question
or