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">
                         <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="" />                   
    Can anyone see what I am doing wrong?

    Regards, Jill-Connie Lorentsen
  2. Kostadin
    Kostadin avatar
    1733 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,
    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.
Back to Top