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

RadGrid and PDF Export from AjaxPanel

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Orazio
Top achievements
Rank 1
Orazio asked on 14 Feb 2011, 04:07 PM
Hi,
I'm trying for the first time the Telerik controls on Asp.net.

I created a master page and I put a ContentPlaceHolder inside. On the Content page, inside the ContentPlaceHolder, I put a RadAjaxPanel where dynamically load a usercontrol with two buttons and a Radgrid but in design. The data visualization works fine. Now, I would like to export the RadGrid using RadGrid Export function, when I click one of the buttons inside my user control.
What is the proper procedure to do this?
I have read several examples, but I think the fact that I have the master page and content page with update panel changes the perspective of how to implement the export.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Feb 2011, 05:28 PM
Hello Orazio,

RadGrid export does not work with ajax. You can disable the async requests for your export button as shown below:
<script type="text/javascript">
   function onRequestStart(sender, args)
   {
       if (args.get_eventTarget().indexOf("BUTTON_ID") >= 0)
           args.set_enableAjax(false);
   }
</script>

For more information please examine the following links:
Export from ajaxified grid
Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled

Regards,
Daniel
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Orazio
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or