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

2 posts, 0 answers
  1. Dennis
    Dennis avatar
    9 posts
    Member since:
    Oct 2011

    Posted 23 May 2012 Link to this post

    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)
  2. Dennis
    Dennis avatar
    9 posts
    Member since:
    Oct 2011

    Posted 23 May 2012 Link to this post

    Nevermind, the solution is posted here:
    http://www.telerik.com/community/forums/aspnet-ajax/grid/export-to-excel-in-sharepoint-application-page.aspx

Back to Top