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

Export RadGrid content to Excel with Ajax enabled --> Re-Enable Ajax afterwards?

1 Answer 163 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 23 May 2012, 11:59 AM
I followed your great documentation on Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled . It works flawlessly - the export itself.

My javascript code is very close to the example code provided:
function requestStart(sender, args) {
    if (args.get_eventTarget().indexOf("lnkExportExcel") >= 0)
        args.set_enableAjax(false);
}


But after exporting the AJAX remains disabled. How do I re-enable AJAX after the RadGrid has been exported? Do i need to refresh the whole page or is there something like "radGrid.Re-EnableAJAX()" via Javascript?

When I load my UserControl in a regular web application AJAX works after clicking the Excel Button, however when using the userControl in SharePoint (on an Application page) Ajax doesn't work anymore, though it looks like a Postback.

So basically I have an application page, loading a user control which contains a RadGrid with Excel Export. When clicking the Excel button, AJAX is disabled just fine, but afterwards all other AJAX features (e.g. Grid filtering) don't work anymore.

PS: (I also posted this here)

1 Answer, 1 is accepted

Sort by
0
Dennis
Top achievements
Rank 1
answered on 23 May 2012, 02:13 PM
Nevermind, the solution is posted here:
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-to-excel-in-sharepoint-application-page.aspx
Tags
Sharepoint Integration
Asked by
Dennis
Top achievements
Rank 1
Answers by
Dennis
Top achievements
Rank 1
Share this question
or