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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

102390 Jan 27,2012 05:45 AM UTC Jan 31,2012 05:35 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Vijay Jayaraj
Asked On January 27, 2012 05:45 AM UTC

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]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;