New to Telerik UI for ASP.NET AJAX? Start a 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:
-
The instance of the listbox firing the event
-
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:
JavaScript
function onClientDeletedHandler(sender, e) {
alert("Successfully deleted: " + e.get_item().get_text());
}