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

Viewstate and TriStateCheckboxes

1 Answer 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Carsten Koster
Top achievements
Rank 2
Carsten Koster asked on 21 Oct 2008, 05:29 PM
Hello telerik folks,

how do i access the check-status off nodes from a RadTreeView(RTV) with disabled viewstate. I found that in the params-collection there is a serialized array which only gives me the hierarchyindex of a node and not the state, in terms of a tristate checkbox.

I tried to get the nodes by using RTV.Nodes[firstIndex].Nodes[secondIndex].Nodes[thirdIndex] but it seems that some hierarchy-indices do not follow that pattern e.g. there are nodes with values much higher than the nodecount currently available, "0:0:9" but there are only 4 nodes on the third level of node "0:0".

I also need to find out how to find out which nodes are really selected and which are only "selected" because there exist selected subnodes. (Tristate and checkChild are active)

Asynch Postbacks (Callbacks) for every checked node are no option as the user is allowed to batch-de/select nodes (0-1000 nodes).

Thank you for your time.

1 Answer, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 24 Oct 2008, 01:55 PM
Hi Carsten Koster,

You can check the CheckState property of Nodes, which can have three possible values:
  • Checked
  • Unchecked
  • Indeterminate
Please see the attached page as an example.

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Carsten Koster
Top achievements
Rank 2
Answers by
Simon
Telerik team
Share this question
or