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

Some Treeview Checkbox State Can Be Lost After Postback

1 Answer 88 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 31 Aug 2009, 06:07 PM
Hi,

I have a situation where things are a little complex. I'd like to maintain some "unusual" state of the treeview checkbox. For example, I'd like to maintain the following state after postback (I write my own javascript code to set the checkbox of Node1_1_1 to "indeterminate").

--Node1 (checked)
   --Node1_1 (checked)
      --Node1_1_1 (indeterminate)
      --Node1_1_2 (checked)

However, when I select a node to cause a postback, the checkbox of Node1_1_1 becomes "checked".

I know this case is unusual; but in my case, the above state makes sense. Is there a way to maintain this state after postback?

Thanks,
Gary

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Sep 2009, 06:55 AM
Hello Gary,

Unfortunately this is not possible. RadTreeView supports only the regular cases in which a node is indeterminate state only when some of its child nodes is unchecked.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Gary
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or