ExportToExcel not working in window.ShowModalDialog

2 posts, 0 answers
  1. David
    David avatar
    13 posts
    Member since:
    Apr 2013

    Posted 13 Oct 2015 Link to this post

    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?

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 14 Oct 2015 Link to this post

    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
Back to Top