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

RadAlert on IE6

3 Answers 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
B B
Top achievements
Rank 1
B B asked on 11 Dec 2009, 04:16 PM
Hi,

I got a problem with RadAlert on IE6 with Telerik 2008 Q2 (2008.2.826.20).
IE6 freezes after clicking on the OK button.

Here is the code :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadAlertBug._Default" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>RadAlert bug</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="sm" runat="server" /> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
     </telerik:RadWindowManager> 
    <telerik:radajaxloadingpanel id="GceAjaxWorkingPanelLoading" runat="server" transparency="20"
        <table style="width: 100%; height: 100%; background-color: white;"
            <tr> 
                <td align="center" valign="middle" style="color:#666666"
                    Loading...<br /> 
                    <img alt="Chargement..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading5.gif") %>' style="border: 0px;" /> 
                </td> 
            </tr> 
        </table> 
    </telerik:radajaxloadingpanel> 
    <telerik:radajaxpanel id="RadAjaxPanel" runat="server" loadingpanelid="GceAjaxWorkingPanelLoading"
        <asp:Button ID="OpenRadAlertButton" runat="server" onclick="OpenRadAlertButton_Click" Text="Open RadAlert" /> 
    </telerik:radajaxpanel> 
    </form> 
</body> 
</html> 
using System; 
 
namespace RadAlertBug 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void OpenRadAlertButton_Click(object sender, EventArgs e) 
        { 
            if (RadAjaxPanel.IsAjaxRequest) 
            { 
                RadAjaxPanel.ResponseScripts.Add("radalert(\"Message\", 300, 100, \"Title\");"); 
            } 
        } 
    } 

Here is the scenario :

 - Click on the RadAlert button (-> opens the popup)
 - On the alert popup, click on the message then on the button (-> closes the alert)
 - Click again on the RadAlert button (-> opens the popup)
 - On the alert popup, click again on the message then on the button (-> IE6 freezes !!)

- Bruno



3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Dec 2009, 12:36 PM
Hello B,

This problem is fixed in more recent versions of the control. I strongly recommend to consider upgrading, but if this is not possible at the moment, the only workaround that I can suggest is to modify the alert template and set the unselectable property to on for the div that wraps the text.
e.g.

<telerik:RadWindowManager DestroyOnClose="true" ID="RadWindowManager1" runat="server">
<AlertTemplate>
        <div class="windowpopup radalert">         
        <div class="dialogtext" unselectable="on">
        {1}            
        </div>
         
        <div>
            <a  onclick="$find('{0}').close();"
            class="radwindowbutton" href="javascript:void(0);">
                <span class="outerspan">
                    <span class="innerspan">##LOC[OK]##</span>
                </span>
            </a>               
        </div>
    </div>
</AlertTemplate>
</telerik:RadWindowManager>



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
B B
Top achievements
Rank 1
answered on 14 Dec 2009, 04:26 PM
Hi,

Thanks for the response.
It fixes the problem with the text message, but if you click anywhere else on the popup, you can still reproduce the problem.

We switched to classic javascript alerts for now...

- Bruno
0
Georgi Tunev
Telerik team
answered on 15 Dec 2009, 08:48 AM
Hello Bruno,

Unfortunately the workaround that I suggested can be applied to the text only - that is why I suggested to consider upgrading to a recent version of the control. The main reason for the problem is a bug in IE and as I said we managed to find a workaround for it from our side, but for this we've had to change some of RadWindow's code, so the only way to avoid that problem is to upgrade.


Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
B B
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
B B
Top achievements
Rank 1
Share this question
or