To handle events, use one of the following methods.
Attach a handler for a PivotGridDataSource event
Assign a callback function to the PivotGridDataSource option that takes on a handler for the required event. The events that can be handled within the PivotGridDataSource's configuration object are listed in the Configuration section. All these events have names starting with on.
Attach several handlers for one or several events to a PivotGridDataSource
Specify event handling functions for one or more events using the on() method. All the PivotGridDataSource events are listed in the Events section.