MobileForms Toolkit Documentation

AdvancedComboBox.ItemAdding Event

Occurs when a new ListItem should be provided for AdvancedComboBox's ItemCollection.

public event ItemAddingEventHandler ItemAdding;

Event Data

The event handler receives an argument of type ItemAddingEventArgs containing data related to this event. The following ItemAddingEventArgs properties provide information specific to this event.

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.
ItemIndex Gets an index of a item that is about to be added.
ListItem Sets a ListItem that will be added into AdvancedComboBox's ItemColection.

Remarks

Once you call the LoadDataManually method, AdvancedComboBox fires this event regularly for you to provide it a ListItem object filled with data. The arguments for this event is derived from CancelEventArgs. You have to set the Cancel property in the event handler to true to stop loading more data. If DelayLoad is set to true, the event stops firing as soon as the items fill up AdvancedComboBox's client area. However, as soon as the user scrolls down to see more items, the event starts firing again for the user to provide additional ListItem objects to be added into the ItemCollection.

See Also

AdvancedComboBox Class | Resco.Controls.AdvancedComboBox Namespace