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

Radcombobox CheckAllItemsCheckBox

4 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 04 Feb 2013, 11:55 AM
Hi.
I wolud like to use JavaScript to get CheckAllItemsCheckBox and set it enabled or disabled for a choosen combobx.
Any ideas how to achieve this?

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Feb 2013, 12:42 PM
Hello Mateusz

Try the following JS
JS
<script type="text/javascript">
function onLoad(sender, args)
{
 var combo = $telerik.$('.rcbCheckAllItemsCheckBox');
 combo[0].disabled = true;
}
</script>

Thanks
Princy
0
Mateusz
Top achievements
Rank 1
answered on 04 Feb 2013, 01:04 PM
Hi.
 Unfortunately that doesn`t cut it ;(.
When you have more then one RadcomboBox on a page with CheckAllItemsCheckBox. This solution disables first random one.
I need to disable a particular one.
0
Princy
Top achievements
Rank 2
answered on 05 Feb 2013, 05:06 AM
Hi Mateusz

If you have more than one combobox then try giving its Id(here RadComboBox2) before the class
Check the following JS
<script type="text/javascript">
function onLoad(sender, args)
{
 var combo = $telerik.$('#RadComboBox2 .rcbCheckAllItemsCheckBox');
 combo[0].disabled = true;
}
</script>

Thanks
Princy
0
Mateusz
Top achievements
Rank 1
answered on 05 Feb 2013, 04:12 PM
Ok it almost does the trick but...
In fact the checkbox is unclickable, but i can click on the row of the value (Check All) and it changes the checkbox checked value.
Tags
General Discussions
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mateusz
Top achievements
Rank 1
Share this question
or