DxTreeList.PagerAutoHideNavButtons Property
Specifies whether arrow navigation buttons are hidden when all numeric buttons are displayed in the pager.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool PagerAutoHideNavButtons { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
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 can 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 TreeList is less than or equal to PagerVisibleNumericButtonCount).
To disable this behavior and display navigation buttons permanently, set the PagerAutoHideNavButtons
property to false
.
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData"
KeyFieldName="Id"
ParentKeyFieldName="ParentId"
PagerNavigationMode="PagerNavigationMode.NumericButtons"
PagerAutoHideNavButtons="false">
<Columns>
<DxTreeListDataColumn FieldName="Name" Caption="Task" />
<DxTreeListDataColumn FieldName="EmployeeName" />
<DxTreeListDataColumn FieldName="StartDate" />
<DxTreeListDataColumn FieldName="DueDate" />
</Columns>
</DxTreeList>
@code {
List<EmployeeTask> TreeListData { get; set; }
protected override void OnInitialized() {
TreeListData = EmployeeTaskService.GenerateData();
}
}
For more information about paging in the TreeList component, refer to the following topic: Paging in Blazor TreeList.