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

find intermediate state in checkbox with javascript

2 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peppi Vecchio
Top achievements
Rank 1
Peppi Vecchio asked on 02 May 2011, 08:48 PM
Hello,

Is there an easy way to find the intermediate state in the tri-state checkbox with javascript?

I understand that there is a style applied to the checkbox based on child states, just wasn't sure if there was an actual property of the treeview checkbox that would be easy to find.

Thanks,

2 Answers, 1 is accepted

Sort by
0
Accepted
Veronica
Telerik team
answered on 03 May 2011, 09:20 AM
Hello Peppi, 

The RadTreeNode client-side object exposes the get_checkState function which returns TreeNodeCheckState which represents the current state of the Node's CheckBox.

TreeNodeCheckState can be:

  • 0 - Unchecked
  • 1 - Checked
  • 2 - Indeterminate

Hope this helps.

Best wishes,
Veronica Milcheva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Peppi Vecchio
Top achievements
Rank 1
answered on 03 May 2011, 02:46 PM
Excellent.

Thank you.
Tags
General Discussions
Asked by
Peppi Vecchio
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Peppi Vecchio
Top achievements
Rank 1
Share this question
or