Edit this page

OnClientItemChecked

The OnClientItemChecked client-side event occurs after the item has been checked.

The event handler receives two parameters:

  1. The instance of the listbox firing the event

  2. 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:

function OnClientItemCheckedHandler(sender, eventArgs) {
    var item = eventArgs.get_item();
    item.set_selected(item.get_checked());
}

See Also