Skip to main content
All docs
V26.1
  • DxGrid.PagerAutoHideNavButtons Property

    Specifies whether arrow navigation buttons are hidden when all numeric buttons are displayed in the pager.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.Grid.v26.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Default Description
    Boolean true

    true to hide navigation buttons when all numeric buttons are displayed; false to display navigation buttons in addition to numeric buttons.

    Remarks

    In numeric buttons mode, you can use the PagerVisibleNumericButtonCount property to specify the maximum number of buttons displayed in the pager simultaneously. A user should click arrow navigation buttons to display other numeric buttons.

    The pager hides arrow navigation buttons if all numeric buttons are displayed (that is, the total page count in the Grid is less than or equal to PagerVisibleNumericButtonCount).

    Blazor Grid Pager Hidden Nav Buttons

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

    @using Microsoft.EntityFrameworkCore
    @inject IDbContextFactory<NorthwindContext> NorthwindContextFactory
    @implements IDisposable
    
    <DxGrid Data="@Data"
            PagerNavigationMode="PagerNavigationMode.NumericButtons"
            PagerAutoHideNavButtons="false">
        <Columns>
            <DxGridDataColumn FieldName="ShipName" />
            <DxGridDataColumn FieldName="ShipCity" />
            <DxGridDataColumn FieldName="ShipCountry" />
            <DxGridDataColumn FieldName="Freight" />
            <DxGridDataColumn FieldName="OrderDate" />
            <DxGridDataColumn FieldName="ShippedDate" />
        </Columns>
    </DxGrid>
    
    @code {
        object Data { get; set; }
        NorthwindContext Northwind { get; set; }
    
        protected override void OnInitialized() {
            Northwind = NorthwindContextFactory.CreateDbContext();
            Data = Northwind.Orders.Take(50).ToList();
        }
    
        public void Dispose() {
            Northwind?.Dispose();
        }
    }
    

    Blazor Grid Pager Nav Buttons Visible

    Run Demo: Data Grid - Paging

    For additional information about paging in the Grid component, refer to the following topic: Paging in Blazor Grid.

    See Also