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

[Solved] Problem with Export when using IE

6 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 10 Aug 2009, 02:51 PM
Hi,
my problem is when i try to export my grid when it has already been export, my browser freeze. The export format doesn't matter.
But if i close the first export file before export the grid, it works.
It happen only in Internet Explorer. I have version 7.
With Firefox, i can have as many export file that i want at the same time without closing one.

Thank you in advance

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 10 Aug 2009, 03:53 PM
Hello Pascal,

I tried to reproduce the mentioned issue using the PDF export to no avail. Could you please provide step-by-step instruction or runnable sample project?

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pascal
Top achievements
Rank 1
answered on 10 Aug 2009, 04:21 PM
Hi

thank you for respond

The formats i use is Excel, ExcelML, Word and CSV.

Step 1 : Click on one of the export button (example : Export to Word)
Step 2 : Click on Open --> the file open
Step 3 : I come back to my page and click on an other button (example : Export to ExcelML) the first file pop and my browser freeze and when i want to close it, a Windows Internet Explorer error pop
--------
This window is busy.
Closing this window may cause some problems.

Do you want to close it anyway?
OK  - Cancel
-------

0
Pascal
Top achievements
Rank 1
answered on 10 Aug 2009, 07:12 PM
I worked around the problem by always setting OpenInNewWindow=true and not displaying the checkbox but ill take any better solution.
Can it be a configuration problem with IE? cause i tested it with all other browsers and it worked perfectly.
Thank you
0
Daniel
Telerik team
answered on 13 Aug 2009, 08:40 PM
Hello Pascal,

I'm glad you managed to sidestep the problem on your own. Currently I haven't got a better suggestion for you, but we will investigate this behavior further as soon as we reproduce it locally.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Swati
Top achievements
Rank 1
answered on 08 May 2013, 08:36 AM
I am unable to export radgrid content in IE browsers but the same code is working fine in chrome and Firefox.

Protected Sub RadGridList_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridList.ItemCommand<br><br>            Select Case e.CommandName<br>                Case Telerik.Web.UI.RadGrid.ExportToExcelCommandName<br>                    ExportSettings()<br>                    RadGridList.MasterTableView.ExportToExcel()<br>                Case Telerik.Web.UI.RadGrid.ExportToCsvCommandName<br>                    ExportSettings()<br>                    RadGridList.MasterTableView.ExportToCSV()<br>                Case Telerik.Web.UI.RadGrid.ExportToWordCommandName<br>                    ExportSettings()<br>                    RadGridList.MasterTableView.ExportToWord()<br>                Case Telerik.Web.UI.RadGrid.ExportToPdfCommandName<br>                    RadGridList.ClientSettings.Scrolling.AllowScroll = "False"<br>                    RadGridList.ClientSettings.Scrolling.UseStaticHeaders = "False"<br>                    ExportSettings()<br>                    RadGridList.MasterTableView.ExportToPdf()<br>                Case "Refresh"<br>                    ScriptManager.RegisterClientScriptBlock(Me.Page, GetType(String), "refresh", "refresh();", True)<br>                Case RadGrid.FilterCommandName<br>                    If (TypeOf e.CommandArgument Is Pair) Then<br>                        Dim objpair As Pair = DirectCast(e.CommandArgument, Pair)<br>                        FilterExpression = objpair.First.ToString<br>                        FilterValue = objpair.Second.ToString<br>                    End If<br>            End Select<br>        End Sub<br>        Private Sub ExportSettings()<br>            RadGridList.ExportSettings.ExportOnlyData = True<br>            RadGridList.ExportSettings.HideStructureColumns = True<br>            RadGridList.ExportSettings.IgnorePaging = True<br>            RadGridList.ExportSettings.OpenInNewWindow = True<br>            If actionVisibleYN Then<br>                RadGridList.MasterTableView.GetColumn("Actions").Visible = False<br>            Else<br>                RadGridList.MasterTableView.GetColumn("ImageCol").Visible = False<br>            End If<br>            If BlnSelectCol Then<br>                Dim gridtmpcol As GridTemplateColumn<br>                gridtmpcol = RadGridList.MasterTableView.GetColumn("Chkbox")<br>                gridtmpcol.Visible = False<br>            End If<br>            isExport = True<br>            RadGridList.ShowGroupPanel = False<br>            RadGridList.MasterTableView.ShowFooter = False<br>            RadGridList.GridLines = GridLines.Both<br>            RadGridList.Rebind()<br>        End Sub<br><br>  Protected Sub RadGridList_ExportCellFormatting(sender As Object, e As Telerik.Web.UI.ExportCellFormattingEventArgs) Handles RadGridList.ExportCellFormatting<br>          <br>            If ShowGroupPanel Then<br>                TryCast(RadGridList.MasterTableView.GetItems(GridItemType.Header)(0), GridHeaderItem).Cells(0).Visible = False<br>                For Each gpheaderItem As GridGroupHeaderItem In RadGridList.MasterTableView.GetItems(GridItemType.GroupHeader)<br>                    gpheaderItem.Cells(0).Visible = False<br>                Next<br>            End If<br><br>            Dim sourcestring As [String] = e.Cell.Text<br>            Dim match As Match<br>            Dim matchpattern As [String] = ".*?<a.*?>(.*?)</a>.*?"<br>            match = Regex.Match(sourcestring, matchpattern, RegexOptions.Multiline Or RegexOptions.IgnoreCase)<br>            If match.Success Then<br>                e.Cell.Text = match.Groups(1).Value<br>            End If<br>            RadGridList.MasterTableView.GetItems(GridItemType.FilteringItem)<br>            RadGridList.MasterTableView.GetItems(GridItemType.Header)<br>            For Each GridItem As GridCommandItem In RadGridList.MasterTableView.GetItems(GridItemType.CommandItem)<br><br>                GridItem.Visible = False<br>            Next        <br><br><br>        End Sub



<ClientEvents OnRequestStart="onRequestStart" />
 
function onRequestStart(sender, args) {
                       if ((args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) || (args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) || (args.get_eventTarget().indexOf("ExportToWordButton") >= 0) || (args.get_eventTarget().indexOf("ExportToPdfButton") >= 0)) {
                           args.set_enableAjax(false);
                       }
                   }

export on IE browsers gives error as

Internet Explorer cannot display the webpage


for more information ,Radgrid is declared in a usercontrol. need your help in this at earliest.
0
Daniel
Telerik team
answered on 09 May 2013, 03:50 PM
Hello Swati,

I suppose that you have https application. If this is so I would recommend that you examine the Export over SSL section in our online documentation.
Exporting - Overview
Let me know if this is not the case.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Pascal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Pascal
Top achievements
Rank 1
Swati
Top achievements
Rank 1
Share this question
or