or
if (e.Button.Text == "Export")
{
if (SessionVars.ReportID > 0)
{
Report rpt = new Report(SessionVars.ReportID);
foreach (GridColumn c in GridReportData.MasterTableView.Columns)
c.HeaderStyle.Width = Unit.Empty;
GridReportData.ExportSettings.HideStructureColumns = true;
GridReportData.ExportSettings.FileName = Gridrpt.Report_Name;
try
{
GridReportData.MasterTableView.ExportToExcel();
}
catch (System.OutOfMemoryException ex)
{
RadWindowManager.RadAlert("Report failed to export.",null, null, "Export Error", "ErrorAlert");
}
RadAjaxManager1.EnableAJAX = true;
}
}
<
telerik:RadAsyncUpload
id
=
"RadUpload1"
runat
=
"server"
PostbackTriggers
=
"btnSubmit"
/>
protected void btnSubmit_Click(object sender, EventArgs e)
{
ErrorMessage = "";
if(!IsIdeaValid())
return;