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

[Solved] RadGrid Export to PDF or Excel feature does not work with RadAjaxManager

1 Answer 277 Views
Grid
This is a migrated thread and some comments may be shown as answers.
A Kunte
Top achievements
Rank 1
A Kunte asked on 12 Jan 2010, 10:19 AM
We are using RadGrid to display data on ASPX page where AJAX is implemented using RadAjaxManager and asp:ScriptManager. We have a button on click of which we need to export grid data to PDF or Excel format. OnClick event of this button we have written following statement:

RadGrid1.MasterTableView.ExportToPdf();

But it does not work (File Open-Save dialogue box is not displayed.)

When we debugged, we can see that control goes to above statement.

When button is placed outside ScriptManager, it works(it shows file open-save box).

Do we need to make any changes in the behaviour of RadAjaxManager to achieve this? Kindly help.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Jan 2010, 10:38 AM
Hello A Kunte,

The exporting feature of RadGrid works with regular postbacks only. When RadGrid is ajaxified through RadAjaxManager, you would have to explicitly disable the ajax and then try exporting. Here's a document that you can refer to understand better:
Export from ajaxified grid

Thanks
Princy.
Tags
Grid
Asked by
A Kunte
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or