|
Query |
Response | |
|
I noticed that these event handlers are firing during PivotView component is rendering: saveReport and fetchReport
It's obvious to call on "fetchReport" during rendering but why call "saveReport"? Is there a way to prevent the component from calling it?
|
As per the behavior of pivot table, the initially loaded report will be saved in data base (here it is local storage) then the reports available in the data base will be listed in a built-in drop-down list in toolbar panel. So, the saveReport event is triggered initially. If you don’t want to save your report on initial rendering, then you can restrict it with the help of below code example.
Code Example:
| |
|
In addition to my inquiry, is there also a way to load the reports to the dropdown in the toolbar? the reports collection will be coming from an API depending on the selected value from an outside dropdown. |
Based on your requirement we have prepared a sample which is available in below,
Code Example:
|