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

Built-in export not working from grid within updatepanel

4 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 20 May 2016, 01:34 PM

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.

4 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 20 May 2016, 02:35 PM
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.
0
Roger
Top achievements
Rank 1
Veteran
answered on 25 Mar 2019, 01:00 PM

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

0
Roger
Top achievements
Rank 1
Veteran
answered on 25 Mar 2019, 01:31 PM
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).
0
Attila Antal
Telerik team
answered on 28 Mar 2019, 08:21 AM
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.
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Roger
Top achievements
Rank 1
Veteran
Attila Antal
Telerik team
Share this question
or