Tab

AutoCompleteBoxPropertiesBase.CallbackPageSize Property

Specifies the number of items that the control returns from the server on each callback.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

[DefaultValue(100)]
public int CallbackPageSize { get; set; }

Property Value

Type Default Description
Int32

100

The number of items.

Remarks

The control loads the number of items specified in the CallbackPageSize property on the initial page load and on subsequent callback requests to the server. For instance, the editor can load items as a user scrolls the list. This number should be greater than or equal to the AutoCompleteBoxPropertiesBase.DropDownRows property value.

This property is in effect if the AutoCompleteBoxPropertiesBase.EnableCallbackMode property is set to true.

Note

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

Web Forms approach:

ASPxComboBox - Item Load Mode

<dx:ASPxGridView ID="Grid" runat="server" DataSourceID="SqlDataSource1">
    <Columns>
        <dx:GridViewDataComboBoxColumn FieldName="Orders.ShipName">
            <PropertiesComboBox EnableCallbackMode="true" CallbackPageSize="30" />
        </dx:GridViewDataComboBoxColumn>
        <!-- ... -->
    </Columns>
</dx:ASPxGridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ...></asp:SqlDataSource>

Run Demo: Callback Mode

MVC approach:

@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";   
    settings.Columns.Add(column => {
        column.FieldName = "ShipID";
        column.ColumnType = MVCxGridViewColumnType.ComboBox;
        column.EditorProperties().ComboBox(p => {
            p.CallbackRouteValues = new { Controller = "Home", Action = "ShipsComboBox" };
            p.ValueField = "ShipID";
            p.TextF