VNVignesh Natarajan Syncfusion Team February 28, 2019 08:16 AM UTC
Thanks for using Syncfusion support.
Query: “Exception thrown while exporting the grid.”
From your query, we understand that you are facing issue while exporting the ejGrid to excel format. We have prepared a sample using your code and we are able to reproduce the reported issue at our end. This is because in the export method Grid dataSource will be null.which is the cause of the issue. While exporting Postback will be sent to server and dataSource must be re binded to Grid. So while exporting Grid dataSource will not empty as per your code example. To overcome the reported issue, kindly rebind the dataSource to grid during postback.
VNVignesh Natarajan Syncfusion Team March 1, 2019 08:46 AM UTC
Thanks for the update.
We are not able to reproduce the reported issue after re bounding the dataSource in postback while exporting. So, please share the following details so that we may try to replicate the issue on our side and provide the solution as soon as possible.
Share the code example of grid in both the client side and server side after applying the suggested solution.
Share the stack trace of the exception that you are getting while exporting.
If possible please try to reproduce the issue in the attached sample
We have prepared a sample which can be downloaded from below link