RadGrid Export: PageRequestManagerParserErrorException after filtering

2 posts, 0 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Feb 2020

    Posted 04 Feb Link to this post

     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?


  2. Attila Antal
    Admin
    Attila Antal avatar
    571 posts

    Posted 07 Feb Link to this post

    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.
Back to Top