Hi,
I have a LinkButton outside of RadGrid for triggering Export to Excel.
I have a LinkButton outside of RadGrid for triggering Export to Excel.
public
void LinkButtonExportToExcel_click(object sender, EventArgs e)
{
int rowCount = RadGridProduct.Items.Count;
if (rowCount <= 0) { return; }
RadGridProduct.ExportSettings.ExportOnlyData =
true;
RadGridProduct.ExportSettings.IgnorePaging =
false;
RadGridProduct.ExportSettings.OpenInNewWindow =
true;
RadGridProduct.MasterTableView.ExportToExcel();
}
It worked fine before but not now. After I clicked the LinkButton, no Excel opened in the new window and my RadGid had lost all of Filter controls and other controls inside ItemTemplates. Am I missing something?
Thanks,
Enoch