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?
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:
However, everything seems to be working as expected. Could you compare the example to yours and see if there are any major differences?