Edit this page

Client-side paging

The TreeList supports client-side paging for large sets of data. To enable the paging functionality configure the Pageable settings.

  • Don't forget to set a PageSize. A PageSize can be defined in the Pageable settings, or in the DataSource settings. If an already existing datasource instance is passed to the treelist, then the PageSize option should be set in the dataSource's settings and not in the Pageable settings.
  • When using the Grid ASP.Net Core wrapper, by default ServerOperations are enabled. As this is a client-side paging, it is necessary to disable the server operations by setting the ServerOperations to false.
    .Columns(columns =>
        columns.Add().Field(e => e.FirstName).Title("Name").Template("#: FirstName # #: LastName #");            
        columns.Add().Field(e => e.Position);
        columns.Add().Field(e => e.HireDate).Format("{0:MMMM d, yyyy}");
    .DataSource(dataSource => dataSource
        .Read(read => read.Action("All", "EmployeeDirectory"))
        .Model(m => {
            m.Id(f => f.EmployeeId);
            m.ParentId(f => f.ReportsTo);                
            m.Field(f => f.ReportsTo);
    .Pageable(p => p.PageSize(15)

See Also