This is a migrated thread and some comments may be shown as answers.

RadGrid Export: PageRequestManagerParserErrorException after filtering

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 04 Feb 2020, 04:45 PM

 Dear Community,

I am currently facing an issue where the RadGrid export fails with an Sys.WebForms.PageRequestManagerParserErrorException (Client-Side) when trying to export a filtered grid. I am using the custom DocumentProcessing described in: https://www.telerik.com/support/kb/aspnet-ajax/details/export-large-amount-of-data-to-pdf-xlsx-and-csv-using-the-telerik-document-processing-libraries

However, the data that is generated is fine. Also, it works when doing custom search through another Textfield / Button. The issue only occurs after previously filtering the grid. It seems like the source for the http request is false and the browser is not expecting a document to be returned. Instead of "document" as http request source it says "xhr". (see attachments: first one shows the error, the other the working request) When opening the request in another tab it works fine as well.

Could anyone help figure this out?


1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 07 Feb 2020, 02:01 PM

Hi Dan,

If AJAX is enabled for the Grid and not using the Buil-in export buttons, but calling the ExportToExcel(), ExportToPdf(), ExportToWord(), ExportToCSV() methods from another control's event then AJAX must be disabled for that action, see Export from Ajaxified Grid

If that is not the case, please share the Grid markup declaration and the code logic used to export it. We will try to replicate the locally see what could be the cause.

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or