Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(11)]
[Parameter]
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