Hi,
I want to show the Loading Panel when user click on the "print" button. For the printing function, i use the third party component "EO.PDF" to render the current page to PDF file. The pdf cannot show up when i click "Print" and when i click on the button again it showed error as follow.
The function works fine when i remove the loadingpanel. Please advise.
Cheers,
Nelson
<eo:ASPXToPDF ID="ASPXToPDF1" runat="server">
</eo:ASPXToPDF>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rtbMain">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelRenderMode="inline"/>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadToolBar ID="rtbMain" runat="server" Width="100%">
<Items>
<telerik:RadToolBarButton Text="Print" Value="Print" Width="80px">
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
<asp:Panel ID="pnlContent" runat="server">
</asp:Panel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Top" Skin="Vista" >
</telerik:RadAjaxLoadingPanel>
Codebehind
Protected Sub rtbMain_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbMain.ButtonClick
If e.Item.Value = "Print" Then
EO.Pdf.Runtime.AddLicense( "XXXXXX")
ASPXToPDF1.RenderAsPDF("Report.pdf")
End If
End Sub
Cheers,
Nelson
I want to show the Loading Panel when user click on the "print" button. For the printing function, i use the third party component "EO.PDF" to render the current page to PDF file. The pdf cannot show up when i click "Print" and when i click on the button again it showed error as follow.
Only items of type Telerik.Web.UI.IRadToolBarButton can initiate postbacks
The function works fine when i remove the loadingpanel. Please advise.
Cheers,
Nelson
<eo:ASPXToPDF ID="ASPXToPDF1" runat="server">
</eo:ASPXToPDF>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rtbMain">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelRenderMode="inline"/>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadToolBar ID="rtbMain" runat="server" Width="100%">
<Items>
<telerik:RadToolBarButton Text="Print" Value="Print" Width="80px">
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
<asp:Panel ID="pnlContent" runat="server">
</asp:Panel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Top" Skin="Vista" >
</telerik:RadAjaxLoadingPanel>
Codebehind
Protected Sub rtbMain_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbMain.ButtonClick
If e.Item.Value = "Print" Then
EO.Pdf.Runtime.AddLicense( "XXXXXX")
ASPXToPDF1.RenderAsPDF("Report.pdf")
End If
End Sub
Cheers,
Nelson