New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientTransferred
The OnClientTransferred client-side event occurs after the selected item has been transferred to the destination RadListBox.
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 item that has been transferred.
-
get_items() - returns an array of items that have been transferred.
-
get_sourceListBox() - returns the instance of the source RadListBox which the item currently belongs to
-
get_destinationListBox() - returns the instance of the destination RadListBox where the item is transferring to.
-
get_domEvent() - returns the DOM event object
The following code notifies the user for a successful transferring of the item:
JavaScript
function onClientTransferredHandler(sender, e) {
alert("Successfully transferred: " + e.get_item().get_text());
}