Flexmonster Pivot Table & Charts offers many events to track different processes and user actions.
There are two ways to subscribe to the events:
pivot.on(<eventName>, function() {
// Event handling
});new Flexmonster({
<eventName>: function() {
// Event handling
},
// Other parameters
}); Read more about how to use events.
| Event | Description |
|---|---|
| afterchartdraw | Triggered after chart rendering. |
| aftergriddraw | Triggered after grid rendering. |
| beforegriddraw | Triggered before grid rendering. |
| beforetoolbarcreated | Triggered before the creation of the Toolbar. |
| cellclick | Triggered when a cell is clicked on the grid. |
| celldoubleclick | Triggered when a cell is double-clicked on the grid. |
| chartclick | Triggered when a chart element is clicked. |
| datachanged | Triggered after the user edits data. |
| dataerror | Triggered when an error occurred during the loading of data. |
| datafilecancelled | Triggered when the Open file dialog was opened and the user clicks the Cancel button. |
| dataloaded | Triggered when the component loaded data. |
| drillthroughclose | Triggered when the drill-through view is closed. |
| drillthroughopen | Triggered when the drill-through view is opened. |
| exportcomplete | Triggered when the export is complete. |
| exportstart | Triggered when the export starts. |
| fieldslistclose | Triggered when the built-in Field List is closed. |
| fieldslistopen | Triggered when the built-in Field List is opened. |
| filterclose | Triggered when the filter pop-up window is closed. |
| filteropen | Triggered when the filter pop-up window is opened. |
| loadingdata | Triggered when data starts loading from a local or remote CSV or JSON file, or after the report was loaded. |
| loadinglocalization | Triggered when a localization file starts loading. |
| loadingolapstructure | Triggered for Microsoft Analysis Services when the OLAP cube structure starts loading, and for the custom data source API when the component sends the /fields request. |
| loadingreportfile | Triggered when a report file started loading. |
| localizationerror | Triggered when an error appeared while loading a localization file. |
| localizationloaded | Triggered when a localization file was loaded. |
| olapstructureerror | Triggered for Microsoft Analysis Services when an error occurred while loading the OLAP structure, and for the custom data source API when the response to the /fields request was not received successfully. |
| olapstructureloaded | Triggered for Microsoft Analysis Services after loading the OLAP structure, and for the custom data source API after receiving the response to the /fields request. |
| openingreportfile | Triggered when a user selects Open -> Local report on the Toolbar or the open() method is called. |
| printcomplete | Triggered when the OS print manager is closed. |
| printstart | Triggered when the OS print manager is opened to start printing. |
| querycomplete | Triggered after the data query was complete. |
| queryerror | Triggered if an error occurred while running the query. |
| ready | Triggered when the component’s initial configuration is completed and the component is ready to receive API calls. |
| reportchange | Triggered when a report is changed in the component. |
| reportcomplete | Triggered when the operations can be performed with the component (data was loaded successfully from the data source and the grid/chart was rendered). |
| reportfilecancelled | Triggered when a user clicks the Cancel button while selecting a local report to open. |
| reportfileerror | Triggered when an error occurred during the loading of the report file. |
| runningquery | Triggered before a data query is started. |
| unauthorizederror | Triggered when the Accelerator or the custom data source API server sends the 401 Unauthorized error in response to Flexmonster's request. |
| update | Triggered when a change occurred in the component. |