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

can't move RadWindow in Firefox/Chrome

4 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shen Li
Top achievements
Rank 1
Shen Li asked on 22 Oct 2012, 08:04 PM
Hi everyone,

I have a problem with RadWiindow. The scenario is a RadWindow is opened from a page which contains an Intersoft WebGrid control. The RadWindow can't be moved (dragging the title bar) in Firefox/Chrome and it works fine in IE. After script debugging, there is an uncaught javascript exception which complains as below about the JS function getTouchEventLocation in Telerik.Web.UI.Common.Core.js

getTouchEventLocation:function(g){var d=arguments[1],b=d?[d+"X"]:"pageX",c=d?[d+"Y"]:"pageY",a={x:g[b],y:g[c]},f=g.changedTouches||(g.originalEvent?g.originalEvent.changedTouches:g.rawEvent?g.rawEvent.changedTouches:false);
if($telerik.isTouchDevice&&f&&f.length<2){a.x=f[0][b];
a.y=f[0][c];
}

Error message: TypeError: g is undefined

(FF is 16.0.1 and Chrome is 22.0.1229.94)

thanks in advance,

Roger

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Oct 2012, 10:43 AM
Hi Roger,

What happens if you remove the Intersoft grid from the page and use a regular button, for example, to show the RadWindow? Does the problem persist? I am asking this because such a problem has not been reported with our controls alone and this code is only used when the mouse handlers are attached to the elements, i.e. when the RadWindow is shown. The error means that there simply isn't an event to be handled, which can happen if  third party code is attaching to it.


All the best,
Marin Bratanov
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.
0
Shen Li
Top achievements
Rank 1
answered on 23 Oct 2012, 04:26 PM
hi Marin,

Thanks for your response. It works fine if I remove the intersoft grid from the page. Not sure that maybe having some conflicts with intersoft grid and telerik RadWindow JS libraries. My testing page is quite simple as below.

<head runat="server">
    <title></title>
    <script src="JQuery.js" type="text/javascript"></script>
    <script language="javascript">
        $(document).ready(function () {
            $("#label1").click(function () {
                var oWnd = radopen("http://www.google.com", "RadWindow1");
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"    ReloadOnShow="true" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" />
        </Windows>
    </telerik:RadWindowManager>
    <div>
        <ISNet:WebGrid ID="Gri1" runat="server" Width="100%" UseDefaultStyle="True" DefaultStyleMode="Elegant">
        </ISNet:WebGrid>
    </div>
    <asp:Label ID="label1" runat="server">Open Modal Window</asp:Label>
    </form>
</body>

not sure if i'm doing something wrong with RadWindow. 

very appreciate your help, thanks.

Roger
0
Marin Bratanov
Telerik team
answered on 25 Oct 2012, 03:43 PM
Hello Roger,

It seems that their scripts are doing something with the handlers we attach, or they modify the $addHandler() function itself, yet what I can advise is that you contact their support team so they can provide more information on the matter.


Greetings,
Marin Bratanov
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.
0
Shen Li
Top achievements
Rank 1
answered on 26 Oct 2012, 03:01 PM
Hi Marin,

Thanks for your advice.

Roger
Tags
Window
Asked by
Shen Li
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Shen Li
Top achievements
Rank 1
Share this question
or