New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientItemChecked
The OnClientItemChecked client-side event occurs after the item has been checked.
The event handler receives two parameters:
-
The instance of the listbox firing the event
-
An event arguments parameter containing the following methods:
-
get_item() - returns the checked item
-
get_domEvent() - returns the DOM event object
The following example shows how to select/unselect the item upon checking/unchecking:
JavaScript
function OnClientItemCheckedHandler(sender, eventArgs) {
var item = eventArgs.get_item();
item.set_selected(item.get_checked());
}