DxPager.ActivePageIndex Property

Specifies a selected page’s zero-based index.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

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.

Pager Overview

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

Run Demo: Pager

See Also