Built-in export not working from grid within updatepanel

5 posts, 0 answers
  1. Frank
    Frank avatar
    7 posts
    Member since:
    Jul 2015

    Posted 20 May 2016 Link to this post

    I have a grid within an updatepanel. 

    If i start an built-in export to excel the grid loses its structure and download doesn´t start.

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 20 May 2016 Link to this post

    Hi Frank,

    Exporting is not supported if it is initiated with AJAX request, but you could take a look at the following help article for detailed information on this matter and how to handle the export in RadGrid with enabled AJAX:
    Hope this helps.


    Regards,
    Konstantin Dikov
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. Roger
    Roger avatar
    27 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2019 in reply to Konstantin Dikov Link to this post

    Hello

    This quote from the mentioned article does not seem to be correct, or for some reason it does not work for me, when using RadGrid within an UpdatePanel:

    "Since Q1 2016 the default built-in export buttons are already performing regular postback, therefore it is not needed to manually exclude them from Ajax, even the RadGrid control is ajaxified, to perform export with them."

    I am using UI for ASP.NET AJAX 2019.1.215.45. It only worked for me by adding CommandItemTemplate with custom buttons and setting "args.set_enableAjax(false)" for specific export to Excel button.

    Cheers,

    Roger

  4. Roger
    Roger avatar
    27 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2019 in reply to Roger Link to this post

    I need to be more precise. The export to Excel with built-in export button actually works after initial load of page / grid. However, it stops working for me after some column filters have been set (or probably other partial postbacks).
  5. Attila Antal
    Admin
    Attila Antal avatar
    609 posts

    Posted 28 Mar 2019 Link to this post

    Hi Roger,

    I have noticed that this forum thread is a duplicate of your formal support ticket you have opened in regards to exporting Ajaxified RadGrid with built-in export buttons. In that support ticket we have discussed that RadAjaxManager and RadAjaxPanel controls have been configured to exclude the exporting from AJAX requests. We have no information whether this feature had been implemented in the ASP UpdatePanel, and therefore we cannot guarantee it would work similar to the Rad Ajax controls.

    Kind regards,
    Attila Antal
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top