getting error when use GridPDFExport component Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'props')

1 Answer 107 Views
Grid
Fachreza
Top achievements
Rank 1
Fachreza asked on 08 Mar 2023, 07:42 AM

Hi guys I am trying to use GridPDFExport component. Use the same exact code as example. got this error.

1 Answer, 1 is accepted

Sort by
0
Accepted
Wissam
Telerik team
answered on 09 Mar 2023, 01:24 PM

Hi, Fachreza,

This issue is reproducible when wrapping the Grid inside `GridPDFExport` with any tag or component.

Basically, only the Grid itself should be wrapped inside the GridPDFExport component, while you can add the needed wrappers such as `ExcelExport` or the `<>` tag to the Grid that is being rendered:

<ExcelExport data={sampleProducts} ref={_export}>
<>
{grid}
</>
</ExcelExport>
<GridPDFExport ref={(el) => (gridPDFExport = el)}>
{grid}
</GridPDFExport>

I hope this helps, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Fachreza
Top achievements
Rank 1
Answers by
Wissam
Telerik team
Share this question
or