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.VisibleNumericButtonCount Property

Specifies the maximum number of numeric buttons the Pager displays simultaneously in NumericButtons mode.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(5)]
[Parameter]
public int VisibleNumericButtonCount { get; set; }

#Property Value

Type Default Description
Int32 5

An integer number that specifies the maximum number of simultaneously displayed numeric buttons.

#Remarks

Use the VisibleNumericButtonCount property to specify how many numeric buttons should be displayed when the Pager component is in NumericButtons mode. When the component is rendered for the first time, it displays a range of numeric buttons that includes the active page (if the ActivePageIndex value is specified) or numeric buttons from 1 to the VisibleNumericButtonCount value. To navigate to other numeric buttons, a user should use navigation buttons.

Razor
<DxPager PageCount="100"
         ActivePageIndex="50"
         VisibleNumericButtonCount="7"
         NavigationMode="PagerNavigationMode.NumericButtons"> 
</DxPager>

Pager Navigation Buttons

If all the numeric buttons are displayed (i.e., PageCount is less or equal to the VisibleNumericButtonCount), the Pager’s navigation buttons are hidden.

Razor
<DxPager PageCount="10"
         ActivePageIndex="2"
         VisibleNumericButtonCount="10">
</DxPager>

Pager - Hidden navigation buttons

Run Demo: Pager - Limit the Number of Page Buttons

See Also