DxPager.ActivePageIndex Property
Specifies a selected page’s zero-based index.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public int ActivePageIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 | A zero-based integer value that specifies the active page’s index. |
Remarks
Use the ActivePageIndex
property to switch pages in code. The PageCount property returns the total number of pages in the pager.
<DxPager PageCount="@PageCount"
@bind-ActivePageIndex="@ActivePageIndex" >
</DxPager>
@code {
int PageCount = 5;
int ActivePageIndex = 1;
}
The ActivePageIndexChanged event is raised when the active page is changed.
See Also