Enables you to prevent a list item from being added to the editor's item collection.
public event ASPxDataInsertingEventHandler ItemInserting
Public Event ItemInserting As ASPxDataInsertingEventHandler
The ItemInserting event's data class is ASPxDataInsertingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|NewValues||Gets a dictionary that contains the new field name/value pairs for the row to be inserted.|
New list items can be inserted into an editor's ASPxAutoCompleteBoxBase.Items collection by using the server (ListEditItemCollection.Add and ListEditItemCollection.Insert) or client (ASPxClientComboBox.AddItem and ASPxClientComboBox.InsertItem) methods. Each time a new list item is going to be inserted into the ASPxAutoCompleteBoxBase.Items collection, the ItemInserting event occurs, allowing you to cancel item insertion. To cancel the insert operation, set the event parameter's Cancel property to true.
After a list item has been inserted into the editor's item collection, the ASPxAutoCompleteBoxBase.ItemInserted event is raised.