In this sample, Total Units acts as the calculated field. Users are allowed to insert a new calculated field based on the existing calculated items either through a dialog window at run time or through code behind.

More Details...


The calculated field feature allows users to create custom fields which are not present in the actual data. Users can create these fields using basic mathematical expression collaborating with existing fields. Calculated fields can be created through UI dialog as well as code behind and it can be enabled by setting allowCalculatedField as true. The calculatedFieldSettings property is available to configure the calculated field in code behind.

The pivotgrid widget features are segregated into individual modules. To add calculated field, we need to inject CalculatedField module into the services.