Exporting a Kendo Grid to Excel with a local data source (variable in javascript)

0 Answers 198 Views
Grid
Tony Kennard
Top achievements
Rank 1
Tony Kennard asked on 26 Jul 2022, 10:43 AM

I'm having difficulty using the grid.saveAsExcel(); as this is reporting:

"Cannot read properties of undefined (reading 'dataSource')"

Can you advise on how I resolve this?

Georgi Denchev
Telerik team
commented on 29 Jul 2022, 07:08 AM

Hi, Tony,

Would it be possible for you to share your Grid and DataSource configurations so I can take a look at them?

I tested the saveAsExcel method by using local data in the following Dojo:

https://dojo.telerik.com/@gdenchev/eDUqidID 

However, everything seems to be working as expected. Could you compare the example to yours and see if there are any major differences?

Best Regards,

Georgi

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Tony Kennard
Top achievements
Rank 1
Share this question
or