Skip to main content
A newer version of this page is available. .
Tab

ASPxAutoCompleteBoxBase.Callback Event

Fires when a round trip to the server has been initiated by a call to the client ASPxClientComboBox.PerformCallback method.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public event CallbackEventHandlerBase Callback

Event Data

The Callback event's data class is CallbackEventArgsBase. The following properties provide information specific to this event:

Property Description
Parameter Gets a string that contains specific information (if any) passed from the client side.

Remarks

The Callback event allows you to perform any desired server-side processing and update the editor’s content, if required, in response to a call to the client ASPxClientComboBox.PerformCallback method.

Specific information passed from the client side can be obtained via the CallbackEventArgsBase.Parameter property.

The necessary actions can be additionally performed on the client side before and after callback processing by using the ASPxClientComboBox.BeginCallback and ASPxClientComboBox.EndCallback client event.

Note

  • If an editor’s ASPxClientComboBox.PerformCallback method is called on the client, the Callback event will be generated on the server side on each callback request performed by the editor (or on the entire page’s postback).
  • The ASPxComboBox control allows you to modify the ASPxAutoCompleteBoxBase.Items collection on callbacks only (e.g., add and remove items, populate ASPxComboBox controls with new data from a data source, etc.).
  • The Callback event handler allows changing the control’s value/selection only on a callback that is caused by the ASPxClientComboBox.PerformCallback method. If the event is caused by internal callbacks (loading items on scrolling / items filtering), the control stops selection changing.
  • It is not possible, for example, to modify a column collection, change item selection, or change SelectionMode on callbacks. To perform these actions on the client side, you can wrap the control with the ASPxCallbackPanel control and process the required scenario on a callback to the panel.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Callback event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also