- Home
- Forum
- React - EJ 2
- Event handlers firing on PivotView rendering
Event handlers firing on PivotView rendering
Hi,
Attachment: Report_ef4b97e.zip
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?
Please see the attached file for the sample snippet.
Attachment: Report_ef4b97e.zip
SIGN IN To post a reply.
2 Replies
1 reply marked as answer
CE
Cedric E
September 3, 2020 03:29 AM UTC
Hi,
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.
SN
Sivamathi Natarajan
Syncfusion Team
September 3, 2020 01:22 PM UTC
Thanks for contacting Syncfusion support.
Please find the response below,
|
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:
|
We hope the above sample meets your requirements.
Regards,
Sivamathi.
Marked as answer
SIGN IN To post a reply.
- 2 Replies
- 2 Participants
- Marked answer
-
CE Cedric E
- Sep 2, 2020 07:27 AM UTC
- Sep 3, 2020 01:22 PM UTC