A newer version of this page is available. Switch to the current version.

AutoCompleteBoxPropertiesBase.CallbackPageSize Property

Gets or sets the number of items returned from the server on each callback request performed in response to a predefined client user action.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public int CallbackPageSize { get; set; }
Public Property CallbackPageSize As Integer

Property Value

Type Default Description


An integer value that specifies the number of items to dynamically obtain from the server.


This property is in effect if the AutoCompleteBoxPropertiesBase.EnableCallbackMode property is set to true. In this mode, only a specific portion of the items list is initially sent to the client. Then, other items are dynamically loaded via callbacks from the server on demand (for instance, when an end-user scrolls the editor's item list). Use the CallbackPageSize property to specify the number of items to be obtained from the server each time it's required (the initial number of items also depends upon the CallbackPageSize property's setting).


In callback mode (the AutoCompleteBoxPropertiesBase.EnableCallbackMode property is set to True), the AutoCompleteBoxPropertiesBase.DropDownRows property value should not be greater than the value of the CallbackPageSize property.


The CallbackPageSize property synchronizes its value with the editor's ASPxAutoCompleteBoxBase.CallbackPageSize property.


The following example illustrates how to use the CallbackPageSize property.

WebForms approach:


For a full example, see the ASPxComboBox - Callback Mode demo.

<dx:ASPxComboBox ID="ASPxComboBox1" runat="server" DataSourceID="CountriesDataSource"
    TextField="CountryName" ValueField="CountryName" Width="285px" SelectedIndex="0" 
    CallbackPageSize="15" EnableCallbackMode="True" EnableViewState="false"/>

MVC approach:


For a full example, refer to MVC ComboBox Extension - Cascading Combo Boxes.

@Html.DevExpress().ComboBox(settings => {
    settings.Name = "City";