New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnClientDeleted

The OnClientDeleted Client-side event occurs after the item or items have been deleted.

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_items() - returns an array of the deleted items

  • get_item() - returns the item that was deleted

  • get_domEvent() - returns the DOM event object

The example below shows how to alert the user that the item was successfully deleted:

function onClientDeletedHandler(sender, e) {
    alert("Successfully deleted: " + e.get_item().get_text());
}               

See Also

In this article