hi I have a radgrid with 3 detailtables on the 2nd level and each detail table also has a 3rd level detail table. The mastertableview grid is paginated, on the export button click I have the following code to export the grid with expanded detailtables (some mastertable records are expanded, some are not):
At runtime I only expanded one mastertableview record, and the detail table for this record is exported correctly. However I realised that only 1st page of the mastertable grid is exported... Then I tried to add the follwoing line of code and expecting to fix the issue:
Then at runtime it does export all records in the mastertable, however the expanded detail tables are no longer shown..
is there anything missing in my code? please help
thanks in advance!
protected
void ExportData(object sender, EventArgs e)
{
Button ExportLinkButton = (Button)sender;
RadGrid1.ExportSettings.IgnorePaging =
false;
RadGrid1.MasterTableView.ExportToExcel();
}
At runtime I only expanded one mastertableview record, and the detail table for this record is exported correctly. However I realised that only 1st page of the mastertable grid is exported... Then I tried to add the follwoing line of code and expecting to fix the issue:
RadGrid1.MasterTableView.AllowPaging =
false;
Then at runtime it does export all records in the mastertable, however the expanded detail tables are no longer shown..
is there anything missing in my code? please help
thanks in advance!