DxDataGrid<T>.PagerSwitchToInputBoxButtonCount Property

Specifies the number of pages when the Data Grid’s pager switches from numeric buttons to the Go to Page input box in Auto mode.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(11)]
public int PagerSwitchToInputBoxButtonCount { get; set; }

Property Value

Type Default Description
Int32

11

An integer value that specifies the number of pages when the pager switches from numeric buttons to the Go to Page input box.

Remarks

When the Data Grid’s pager is in Auto mode and the total number of its pages (PageCount) equals or exceeds the PagerSwitchToInputBoxButtonCount property’s value, the pager switches from numeric buttons to the Go to Page input box.

<DxDataGrid Data="@DataSource"
            PageCount="@PageCount"
            @bind-PageIndex="@PageIndex"
            PagerSwitchToInputBoxButtonCount="@SwitchToInputBox"> 
</DxDataGrid>

@code { 
    int PageCount = 5; 
    int PageIndex = 2;
    int SwitchToInputBox = 15;
    // int SwitchToInputBox = 4;
}

Pager Switch to Input Box

See Also