I am working on adding some excel export functionality to all of the grids in my application. I have played around with numerous options but I can't seem to get the results I need.
I have grids that use calculated columns and aggregates. When using the ExportDataOnly = true and Format="ExcelML" the calculated columns and aggregates do not appear on the export. Also, any formatting applied to data is lost.
When I set ExportDataOnly = false and use HTML format the column names are linked inside of excel, the filter fields appear, and all hell breaks loose when you have a detail table.
I've tried using the GridExporting event like this:
protected void RadGridSearch_GridExporting(object source, GridExportingArgs e) |
{ |
RadGridSearch.AllowSorting = false; |
RadGridSearch.AllowFilteringByColumn = false; |
} |
It does not seem to change the export behavior.
I need to be able to do one of 2 things, either have my aggregated data and calculated columns show up on data only exports, or be able to trim out all the extra garbage when using HTML format.
Any suggestions?