Ajax, RadGrid and ExportToPdf()

2 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 21 May 2013 Link to this post

    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
  2. Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 24 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top