DxDataGrid<T>.PagerAutoHideNavButtons Property

Specifies whether or not Data Grid pager’s navigation buttons are hidden when all numeric buttons are displayed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(true)]
public bool PagerAutoHideNavButtons { get; set; }

Property Value

Type Default Description
Boolean

true

true, to hide navigation buttons when all numeric buttons are displayed; otherwise, false.

Remarks

Use the PagerVisibleNumericButtonCount property to specify how many numeric buttons should be displayed when the Data Grid pager is in NumericButtons mode. When the component is rendered for the first time, it displays a range of numeric buttons that includes the active page (if the PageIndex value is specified) or numeric buttons from 1 to the PagerVisibleNumericButtonCount value. To navigate to other numeric buttons, a user should use navigation buttons.

<DxDataGrid Data="@DataSource"
            PageCount="100"
            PageIndex="50"
            PagerVisibleNumericButtonCount="7"
            PagerNavigationMode="PagerNavigationMode.NumericButtons"> 
</DxDataGrid>

Pager Navigation Buttons

If all the numeric buttons are displayed (i.e., PageCount is less or equal to the PagerVisibleNumericButtonCount), the pager’s navigation buttons are hidden.

<DxDataGrid Data="@DataSource"
            PageCount="10"
            PageIndex="2"
            PagerVisibleNumericButtonCount="10">
</DxDataGrid>

Data Grid - Hide navigation buttons

To disable this behavior and display navigation buttons permanently, set the PagerAutoHideNavButtons property to false.

<DxDataGrid Data="@DataSource"
            PageCount="10"
            PageIndex="2"
            PagerVisibleNumericButtonCount="10"
            PagerAutoHideNavButtons="false">
</DxDataGrid>

Pager Display Navigation Buttons Permanently

See Also