Essential Grid ASP.NET
GridGroupingControl - After Export to Excel no other postback controls on the page are working
January 31, 2012 12:35 AM by Bala Murugan A.S[Syncfusion]
Vijay
GridGroupingControl - After Export to Excel no other postback controls on the page are working
January 27, 2012 12:45 AM
Hi,

I am working on a GridGroupingControl 9.4.0.62 version.
I have a button click event which will do the export to excel.

Fucntionality of Export to excel / word documents is working
fine but after exporting no other post back controls on the page are working. I need to reopen the page once again to make other
controls work which is not the expected behaviour.

Please let me know if im missing any setting. Below is the code
snippet.


protected void btnExportExcel_Click(object sender, EventArgs e)
{
try
{
GridExcelExport excel;

if (rdBtnAllRecords.Checked)
excel = new GridExcelExport(this.GridGroupingControl1, "Projects.xls");
else
excel = new GridExcelExport(this.GridGroupingControl1, "Projects.xls", ConverterOptionsExt.Visible);

excel.ExportNestedTable = true;
excel.FormatExcelCellHandler += new ExportExcelCellHandler(excel_FormatExcelCellHandler);
excel.Export();

}catch (Exception ex)
{
ErrorLogger.WriteError(ex, EventLogEntryType.Error);
}
}

void excel_FormatExcelCellHandler(object sender, ExcelExportEventArgs e)
{
try
{
//Applying Some data modifications like formatting the cells etc

}
catch (Exception ex)
{
ErrorLogger.WriteError(ex, EventLogEntryType.Error);
}

}

Thanks.

- Vijay


Bala Murugan A.S
[Syncfusion]
GridGroupingControl - After Export to Excel no other postback controls on the page are working
January 31, 2012 12:35 AM
Hi Vijay,

Thanks for using Syncfusion Products.

We are unable to reproduce the issues reported by you and the Postback controls on the page are working fine in our end after export to excel. We have prepared the simple sample to demonstrate this and the same can be downloaded from the below link.

ExcelExport-78297311.zip

Please have a look at the above sample and if still the issue exist, could you please try reproducing it in the above sample and give it back to us so that we can look into it and suggest a solution quickly?

Please let me know if you have any concerns.

Regards,
Bala Murugan A.S

::adCenter::