I'm currently utilizing a Telerik web component called RadGrid that is connected to an Asp.Net ObjectDataSource. This component allows the data it is linked to be exported into Excel, PDF, or Word formats. However, I am facing an issue where I am unable to trigger a JavaScript alert once the file download is complete. I have attempted using the OnResponseEnd method in JavaScript, but it has not yielded the desired result.
Any recommendations or suggestions?
Here is the codebehind code that I have implemented so far:
protected void bXls_Click(object sender, EventArgs e)
{
RadGrid1.MasterTableView.GetColumn("Historico").Visible = false;
RadGrid1.MasterTableView.GetColumn("TareaIdExport").Visible = true;
RadGrid1.ExportSettings.IgnorePaging = true;
RadGrid1.ExportSettings.OpenInNewWindow = false;
RadGrid1.MasterTableView.ExportToExcel();
}
And here is a shortened version of the component code:
<telerik:RadGrid ID="RadGrid1" runat="server"
AutoGenerateColumns="False"
Culture="es-ES"
GroupPanelPosition="Top" DataSourceID="objGrid"
OnItemCommand="RadGrid1_ItemCommand"
OnItemDataBound="RadGrid1_ItemDataBound"
RenderMode="Lightweight"
AllowFilteringByColumn="True"
AllowPaging="True"
AllowSorting="True"
OnItemCreated="RadGrid1_ItemCreated"
PageSize="4"
OnGridExporting="RadGrid1_GridExporting"
OnPdfExporting="RadGrid1_PdfExporting">
</telerik:RadGrid>