Hi Bernard,
Thanks for contacting Syncfusion Support.
Issue:-1 #Without Filter:- System.IndexOutofRangeException:-
From your screenshot we understand that you are facing issue while exporting the Grid without applying filter. We have prepared a sample as per your code example but we are unable to reproduce your reported problem at our end. Kindly refer the below the sample Link
The reported issue may occur while defining the anchor tag in the format property of Column. We suggest you achieve your requirement using column template feature of ejGrid. You can also export the Grid with column template.
Please refer to the documentation Link for template column and its exporting
Column Template
Column Template Exporting
After following the above solution still facing the issue, please share us the following details.
- StackTrace of the issue.
2. Stringified model of the Grid on server side while on Exporting as like below screenshot and copy it into clipboard.
- If possible replicate the issue in the above sample and revert us back.
Issue#2:- With Filter:- System.Argument.NullException:-
We are able to reproduce the reported problem at our end by preparing sample as per your screenshot. In your code example, you have handled filtered data separately on server end. By default Grid will be exported with filtered data when Grid is exported after filtering a column.So it is not necessary to handle the filtered data on server side externally. We suggest you to remove the filtered data externally(ignoreonExport).
Please get back to us if you need further assistance.
Regards,
Vignesh Natarajan.