We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridGroupingControl - After Export to Excel no other postback controls on the page are working

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



1 Reply

BM Bala Murugan A.S Syncfusion Team January 31, 2012 05:35 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon