This is a migrated thread and some comments may be shown as answers.

Issue in "Export to excel" feature!

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 12 Aug 2009, 12:38 AM
Hi,

I'm upgrading RAD Grid from Q3 2007 release to Q2 2009 release. Now the "Export to excel" feature is not working after upgrading the control (earlier it was working fine). 

Here is the scenario i'm looking for:

1. i've a button called 'Export' in a panel which will be show/hide based on the grid's visibility
2. the show/hide option is handled by the "RadAjaxManagerProxy"
3. once select a row and click on the 'Export', it should export the selected data to excel.
4. while debugging, the code is getting triggered but the 'open file' pop-up is not appearing.

Here is the code snipper i've used to export:
            rgMemberResult.ExportSettings.ExportOnlyData = true
            rgMemberResult.ExportSettings.IgnorePaging = true
            rgMemberResult.ExportSettings.OpenInNewWindow = true
            rgMemberResult.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML; 
            this.rgMemberResult.MasterTableView.ExportToExcel(); 


Please let me know, if anything am i missing here.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Aug 2009, 06:13 AM
Hello Meenakshi,

The Export feature of the grid does not work with ajax settings but will work only with regular postbacks. Check out the following document to find out how to export from an ajaxified grid:
Export from ajaxified grid

Thanks
Princy.
Tags
Grid
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or