Skip to main content

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

[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

<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