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

Possible to set CheckState while building a node?

1 Answer 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 07 May 2009, 08:27 PM
We need to rebuild a treeview from values stored in the database.  We'd like to be able to reset the tri-state checkbox for the treeviews if there are both checked and unchecked child nodes for a given node however, the CheckState property is read-only.  Is there any specific reason for this or any way to set the CheckState server-side?

Thanks,
Adam

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 May 2009, 06:17 AM
Hi Adam,

A suggestion would be to hook OnNodeDataBound event and set the Checked (e.Node.Checked) property there. Please go through the following links.
NodeDataBound
Check checkbox in radtreeview when databind

Thanks,
Shinu.
Tags
TreeView
Asked by
Adam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or