• Material
  • Fabric
  • Bootstrap
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Essential JS 2
HOME
All Controls

Button

This sample demonstrates the field list feature of the pivotgrid widget. In this sample, fields are automatically populated from the bound data source and can be used to create a pivot view at runtime.

DEMO
SOURCE

The pivotgrid widget provides a built-in field list very similar to Microsoft Excel. The top section of the field list allows the user to add and remove fields. The bottom section of the field list allows the user to rearrange the fields between different axes, including column, row, value, and filter along with filter and sort options.

To show the field list independently, create as separate widget namely PivotFieldList and assign JSON data source to its dataSource->data property. Simultaneously pivotgrid will be populated by passing its instance in the updateView method, inside the enginePopulated event of field list.


Additionally, user interface for calculated field, label filter, and value filter features have been enabled in this demo by setting the properties allowCalculatedField, dataSource->allowLabelFilter and dataSource->allowValueFilter to true.

NOTE: To enable calculated field, inject CalculatedField module.