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


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:

  1. The instance of the destination RadListBox firing the event

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

protected void DestinationListBox_Inserting(object sender, RadListBoxInsertingEventArgs e)
    e.Cancel = true;
Protected Sub DestinationListBox_Inserting(sender As Object, e As RadListBoxInsertingEventArgs)
    e.Cancel = True
End Sub

See Also

In this article