Occurs after a new list item has been added to the editor’s item collection.
public event ASPxDataInsertedEventHandler ItemInserted
Public Event ItemInserted As ASPxDataInsertedEventHandler
The ItemInserted event's data class is ASPxDataInsertedEventArgs. The following properties provide information specific to this event:
|AffectedRecords||Gets the number of records affected by the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.|
|Exception||Gets the exception (if any) that was raised during the update operation. Inherited from ASPxDataBaseUpdatedEventArgs.|
|ExceptionHandled||Gets or sets whether an exception raised during the update operation was handled in the event handler. Inherited from ASPxDataBaseUpdatedEventArgs.|
|NewValues||Gets a dictionary that contains the values of the non-key field name/value pairs in the row to be inserted.|
New list items can be created in an editor by using the server (ListEditItemCollection.Add and ListEditItemCollection.Insert) or client (ASPxClientComboBox.AddItem and ASPxClientComboBox.InsertItem) methods.
The ItemInserted event serves as notification that a new list item has been added to the editor’s ASPxAutoCompleteBoxBase.Items collection.
To specify whether a list item can be created and cancel item creation, handle the ASPxAutoCompleteBoxBase.ItemInserting event.