- Home
- Forum
- React - EJ 2
- Required info about pivotview
Required info about pivotview
Hi Team,
I have rendered pivotview component as a chid component and using pivotview component with toobar.
ex:<Parent>
<pivotwrapper>
<pivotViewComponent></pivotViewComponent>
</pivotwrapper>
</parent>
Q1)How can we access reference of the pivotViewComponent in parent component, And how can i get the report of the pivotview in parent component with that reference. So That I can save it in backend.
Q2)How can we load the reports in dropdown without calling fetch report, because we need to add a report to dropdown once we store the new report in the database instead of saving in a local storage.
Q3)How can i load the new data in a pivot component from parent component.
Please check my question and do some helpful.
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SN
Sivamathi Natarajan
Syncfusion Team
June 2, 2020 12:44 PM UTC
Hi Ur Nuna,
Thanks for contacting Syncfusion support.
Please find the response below,
|
Query |
Response | |
|
How can we access reference of the pivotViewComponent in parent component, And how can i get the report of the pivotview in parent component with that reference. So That I can save it in backend. |
You can access the pivot table component from parent component using “ref”. Meanwhile we have prepared a sample for your reference. In the below sample pivot table component can be accessed by “this.pivotRef”.
| |
|
How can we load the reports in dropdown without calling fetch report, because we need to add a report to dropdown once we store the new report in the database instead of saving in a local storage. |
Based on your requirement we have prepared a sample to load the report from drop down list once report saved. You can save the current report using getPersistData() method. And you can load the report using loadPersistData() method.
| |
|
How can i load the new data in a pivot component from parent component. |
You can load the new data source using pivot table component instance (this.pivotRef) |
We hope the above sample meets your requirements. If not kindly share us more details along with screen-shots/video if possible.
Regards,
Sivamathi.
Marked as answer
UN
Ur Nuna
June 2, 2020 01:43 PM UTC
Thanks for your prompt reply, We will check your reference and will get back you, if we get any doubt on this.
SN
Sivamathi Natarajan
Syncfusion Team
June 3, 2020 04:48 AM UTC
Hi Ur Nuna,
Thanks for the reply. We will wait until we hear from you.
Regards,
Sivamathi.
SIGN IN To post a reply.