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

set Indeterminate on the client side, when tristatecheckbox=false

1 Answer 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 05 Mar 2012, 12:47 PM
Is it possible to set the Indeterminate state of the node from the client side, when the TriStateCheckBoxes=false. I tried setting it using the solution provided in the below link : 

http://www.telerik.com/community/forums/aspnet-ajax/treeview/setting-indeterminate-check-state-on-client-side.aspx 

but it works only when we set the TriStateCheckBoxes=true.
Is this a limitation or there is any workaround.

Regards,
Mirang

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 05 Mar 2012, 02:06 PM
Hello Mirang,

When you TriStateCheckBoxes set to true, it renders the checkboxes using a span that has a css class that changes the background of the span. So it create a fake checkbox control, thus the reason it's capable of showing the Indeterminate state. When you have this setting set to false, it uses real checkbox control.

So if you want the ability to show the three states, you need to set TriStateCheckBoxes to true.

I hope that helps.
Tags
TreeView
Asked by
mirang
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or