Back to Devexpress

DxPager.SwitchToInputBoxButtonCount Property

blazor-devexpress-dot-blazor-dot-dxpager-1c6671fc.md

latest1.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Int3211

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.

razor
<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;
}

See Also

DxPager Class

DxPager Members

DevExpress.Blazor Namespace