4 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Aug 2012, 06:11 AM
Hi,
Try the following javascript to raise event on clicking Check All checkbox.
JS:
Thanks,
Shinu.
Try the following javascript to raise event on clicking Check All checkbox.
JS:
function onLoad(sender) {$telerik.$('.rcbCheckAllItemsCheckBox').change(function () { if (sender.get_text() == "All items checked") { alert(sender.get_text() + " some custom action here"); } }); }Thanks,
Shinu.
0
RJ
Top achievements
Rank 1
answered on 07 Aug 2012, 11:29 AM
Hi Shinu,
Where should I attach the onLoad? I added OnclientLoad="onLoad" to my Radcombo but it didnt work. Also I'm useing Masterpage on this.
Thanks,
RJ
Where should I attach the onLoad? I added OnclientLoad="onLoad" to my Radcombo but it didnt work. Also I'm useing Masterpage on this.
Thanks,
RJ
0
Shinu
Top achievements
Rank 2
answered on 08 Aug 2012, 08:38 AM
Hi RJ,
Unfortunately I couldn't replicate the issue. Here is the code that I tried based on your scenario which works as expected at my end.
ASPX:
Another approach is that you can raise the event as follows.
Javascript:
Unfortunately I couldn't replicate the issue. Here is the code that I tried based on your scenario which works as expected at my end.
ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" EnableCheckAllItemsCheckBox="true" CheckBoxes="true" OnClientLoad="onLoad" > <Items> ............ </Items> </telerik:RadComboBox>Another approach is that you can raise the event as follows.
Javascript:
<script type="text/javascript">
$telerik.$('.rcbCheckAllItemsCheckBox').change(function () { // Your code });
</script> 0
RJ
Top achievements
Rank 1
answered on 08 Aug 2012, 01:22 PM
Hi Shinu,
new code wont work, but when I tried the first code again it worked now. My bad, I have localized AllItemsCheckedString thats why it didnt work the first time... Thank you so much.
new code wont work, but when I tried the first code again it worked now. My bad, I have localized AllItemsCheckedString thats why it didnt work the first time... Thank you so much.