Search results

Load limited data in member editor

08 Apr 2021 / 1 minute to read

In the filter dialog, you can set the limit to display the field values while loading large data. Based on this limit, the initial loading will complete quickly without any performance constraint. You can use the search option to refine the field values from the exceeded limit and refine the data further. A message with the remaining data count will be displayed in the member editor. The data limit can be set in the maxNodeLimitInEditor property.

By default, the property holds the value 1000.

The property is available in both pivot table and Field List components.

In the below example, the data in the member editor limits to 100. So, the member editor of the field ProductID shows only its first 100 members from its 1000 members.

Copied to clipboard
@Html.EJS().PivotView("PivotView").Height(300).DataSourceSettings(dataSource => dataSource.DataSource((IEnumerable<object>)ViewBag.DataSource).ExpandAll(false)
 .Rows(rows =>
     rows.Name("Country").Add(); rows.Name("Products").Add();
 }).Columns(columns =>
     columns.Name("Year").Caption("Year").Add(); columns.Name("Quarter").Add();
 }).Values(values =>
     values.Name("Sold").Caption("Units Sold").Add(); values.Name("Amount").Caption("Sold Amount").Add();
Copied to clipboard
public ActionResult Index()
    var data = GetPivotData();
    ViewBag.DataSource = data;
    return View();