blazor-devexpress-dot-blazor-dot-dxpager.md
Specifies the total number of pages in the pager.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public int PageCount { get; set; }
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the number of pages.
|
To specify a pager’s active page, use a zero-based ActivePageIndex property.
<DxPager PageCount="@PageCount"
@bind-ActivePageIndex="@ActivePageIndex" >
</DxPager>
@code {
int PageCount { get; set; } = 5;
int ActivePageIndex { get; set; } = 1;
}
To hide unnecessary pages, use the VisibleNumericButtonCount property with the NumericButtons navigation mode.
<DxPager PageCount="100"
ActivePageIndex="50"
VisibleNumericButtonCount="7"
NavigationMode="PagerNavigationMode.NumericButtons">
</DxPager>
Run Demo: Pager - Limit the Number of Page Buttons
See Also