Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.

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

Pager Switch to Input Box

See Also