New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientCheckAllChecked
The OnClientCheckAllChecked client-side event occurs after the user click on the Check All check box. This event is added in 2013 Q3 release (Telerik.Web.UI.dll v.2013.3.1015).
The event handler receives two parameters:
-
The instance of the combobox firing the event.
-
An eventArgs parameter containing the following methods:
-
get_domEvent() returns the DOM event object of the drop-down opening.
-
get_checked() returns the value of the Check All check box after it is checked.
The example below shows how to get the value of the Check All check box:
ASPNET
<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server" OnClientCheckAllChecked="OnClientCheckAllChecked"
CheckBoxes="true" EnableCheckAllItemsCheckBox="true">
<items>
<telerik:RadComboBoxItem Text="Item1" />
<telerik:RadComboBoxItem Text="Item2" />
<telerik:RadComboBoxItem Text="Item3" />
</items>
</telerik:RadComboBox>
JavaScript
function OnClientCheckAllChecked(sender, args) {
if (args.get_checked()) {
alert('All items are checked.');
}
else {
alert('All items are unchecked.');
}
}