Skip to main content
All docs
V24.1

DxTreeList.ShowAllRows Property

Specifies whether the TreeList displays all rows on one page.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(false)]
[Parameter]
public bool ShowAllRows { get; set; }

Property Value

Type Default Description
Boolean false

true to display all rows on one page; otherwise, false.

Remarks

Enable this property to ignore the PageSize value and display all data rows on one page. If the total height of all rows exceeds the TreeList height, the TreeList displays the vertical scrollbar. The pager is visible only if it contains the page size selector with the All item.

Note

The TreeList renders all data rows simultaneously when the ShowAllRows property is set to true. This can cause performance issues if the TreeList is bound to a large data source. In this case, use the VirtualScrollingEnabled property instead.

The following code snippet displays all TreeList rows on one page:

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId" ShowAllRows="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();
    }
}

Blazor TreeList All Rows on One Page

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

See Also