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

Ajax, RadGrid and ExportToPdf()

1 Answer 72 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 21 May 2013, 01:01 PM
I have a RadGrid which is filled with data when the user clicks a button. After this I want the user to have the option to export the grid to pdf by clicking a button on a RadToolBar, but it is not working. If I don't use ajax it works fine.

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">                 
             <telerik:AjaxSetting AjaxControlID="btnFindProgram">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="lblProgram" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="RadGridProgram" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="RadToolBar1" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailBody" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailSubject" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailAddress" UpdatePanelCssClass="" />                   
                 </UpdatedControls>
             </telerik:AjaxSetting>                        
         </AjaxSettings>
     </telerik:RadAjaxManager>
 
Can anyone see what I am doing wrong?

Regards, Jill-Connie Lorentsen

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 24 May 2013, 08:42 AM
Hello Jill-Connie Lorentsen,

The exporting feature works only with regular postbacks. This means, that the asynchronous postback should be canceled when performing an export. Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or