New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Inserting
Updated over 6 months ago
The Inserting server event fires when the AutoPostBackOnTransfer="True" and the user tries to insert an item / items. It fires after the Deleting server event (when items are transferred from another RadListBox control) once for all items which are about to be inserted.
The event handler receives two parameters:
- 
The instance of the destination RadListBox firing the event
 - 
An event arguments parameter containing the following properties:
 
- 
Items - collection of all RadListBoxItem objects which are about to be inserted.
 - 
Cancel - set it to True to cancel the event and prevent the insertion to happen
 
C#
protected void DestinationListBox_Inserting(object sender, RadListBoxInsertingEventArgs e)
{
	e.Cancel = true;
}