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

ExportToExcel not working in window.ShowModalDialog

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 13 Oct 2015, 04:58 PM

I am opening up an .aspx page with a radgrid on it. I click a button and it runs the 4 lines of code below.

 

rgExportSummary.ExportSettings.IgnorePaging = True
rgExportSummary.ExportSettings.Excel.Format = DirectCast([Enum].Parse(GetType(GridExcelExportFormat), "ExcelML"), GridExcelExportFormat)
rgExportSummary.ExportSettings.ExportOnlyData = True
rgExportSummary.ExportSettings.OpenInNewWindow = True
rgExportSummary.MasterTableView.ExportToExcel()

 

When I use the window.open javascript to open this aspx page and then click the button to run the above code, I get the export for the grid.

When I use the window.ShowModalDialog javascript to open the aspx page and then click the button to run the above code, I do not get any export or response.

 What am I doing wrong or missing?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Oct 2015, 10:33 AM
Hello,

I'm afraid that this is browser behavior and we can not control it. We recommend you use RadWindow instead of JS modal window dialog.

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or