DxPager.SwitchToInputBoxButtonCount Property

Specifies the number of pages when the 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 SwitchToInputBoxButtonCount { 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 Pager is in Auto mode and the total number of its pages (PageCount) equals or exceeds the SwitchToInputBoxButtonCount property’s value, the Pager switches from numeric buttons to the Go to Page input box.

NOTE

When the Pager is shown on small devices, the component switches to the Go to Page input box and the SwitchToInputBoxButtonCount value is not taken into account.

<DxPager PageCount="@PageCount"
         @bind-ActivePageIndex="@ActivePageIndex"
         SwitchToInputBoxButtonCount="@SwitchToInputBox"> 
</DxPager>

@code { 
    int PageCount { get; set; } = 5; 
    int ActivePageIndex { get; set; } = 1;
    int SwitchToInputBox = 15;
    // int SwitchToInputBox = 4;
}

Pager Switch to Input Box

See Also