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

Occurs when a pager’s active page is changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<int> ActivePageIndexChanged { get; set; }

#Parameters

Type Description
Int32

A zero-based integer value that specifies the new active page’s index.

#Remarks

Handle the ActivePageIndexChanged event to respond to the ActivePageIndex property change.

Pager Overview

Razor
<DxPager PageCount="@PageCount"
         ActivePageIndex="@ActivePageIndex"
         ActivePageIndexChanged="OnActivePageIndexChanged">
</DxPager>

@code {
    int PageCount { get; set; } = 5;
    int ActivePageIndex { get; set; } = 1;

    void OnActivePageIndexChanged(int activePageIndex) {
        ActivePageIndex = activePageIndex;
        @* ... *@
    }
}

Run Demo: Pager

See Also