I'm using Q1 2009 version, i have a grid in my web page with "telerik:GridTemplateColumn" which shows the Download link.
<telerik:GridTemplateColumn DataField="Download" HeaderText="" UniqueName="Download">
<ItemTemplate>
<asp:LinkButton CommandName="Download" ForeColor="#2176D3" ID="lbDAR_Download" runat="server"
Text="Download"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
In the Item Command of that grid i'm calling a function to download the file from the server.
Response.ClearHeaders()
Response.Clear()
Response.ContentType =
"application/pdf"
Response.AddHeader(
"Content-Disposition", "attachment; filename=" + AppDomain.CurrentDomain.BaseDirectory & sourceFile)
Response.WriteFile(AppDomain.CurrentDomain.BaseDirectory & sourceFile)
it works fine. But if i implement the ajax for this grid with the help of RadAjaxManager, the downloading is not working.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid6">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid6" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista" />
- please provide me the solution.
-thanks,
-Saravana.