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

Specifies a selected page’s zero-based index.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

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

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