DxTreeList.PageSizeSelectorAllRowsItemVisible Property
In This Article
Specifies whether the page size selector contains the All item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[DefaultValue(false)]
[Parameter]
public bool PageSizeSelectorAllRowsItemVisible { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
#Remarks
When the PageSizeSelectorVisible option is set to true
, the TreeList displays the page size selector. Enable the PagerAllDataRowsItemVisible
property to display the All item in the selector. When a user selects this item, the TreeList sets the ShowAllRows property to true
and displays all rows on one page.
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData"
KeyFieldName="Id"
ParentKeyFieldName="ParentId"
PageSizeSelectorVisible="true"
PageSizeSelectorItems="@(new int[] { 5, 10, 15 })"
PageSizeSelectorAllRowsItemVisible="true">
<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.
See Also