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

RadWindow "moveto" Throwing Invalid Argument In IE 8

3 Answers 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brixel
Top achievements
Rank 1
Brixel asked on 06 Sep 2013, 04:05 PM
Hey guys,

Not getting very helpful information from the debugger on this, but we have a situation where one RadWindow  has a button that calls a function that opens another RadWindow and then position it using "moveTo". This works very well in Chrome but in IE 8 it throws the following exception:

Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_radScriptManagerCommon_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3acaf9918e-87b7-4f16-b8e8-f81c9ff8f4ab%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a8a277cf4-155d-4ba9-b3c0-d6f62646e5f2%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a19620875%3a874f8ea2%3af46195d3%3acda80b3%3a383e4ce8%3a92fe8ea0%3afa31b949%3a490a9d4e%3abd8f85e4%3ae330518b%3a2003d0b8%3a1e771326%3ac8618e41%3a8e6f0d33%3a7165f74%3aaa288e2d%3a58366029%3ae524c98b, line 6 character 63497

The debugger points to a highlighted piece of code that appears to be deep inside some Microsoft stuff:

a.top=d+"px"

I've done quite a bit of searching but haven't seen anyone with the same problem. I did find a post where someone had a similar error as the one above, but it was with opening a RadWindow. Most of the stuff I've seen have recommend to add a setTimeout, but that hasn't worked.

Any help would be greatly appreciated. Thanks.

3 Answers, 1 is accepted

Sort by
0
Brixel
Top achievements
Rank 1
answered on 06 Sep 2013, 05:43 PM
I tested in IE 7, 9 and 10 as well. It works correctly in 9 and 10, but has the same error in IE 7.
0
Accepted
Marin Bratanov
Telerik team
answered on 09 Sep 2013, 03:10 PM
Hi Brixel,

This is, indeed, a really strange report. I have not seen such issues with the control and at this point I can advise the following:
- try the latest version of the controls to see if this helps
- make sure you pass integers to the moveTo(x, y) method of the popup. The parseInt() function can help for this
- add a check before moving it: if(wndReference.get_popupElement()) wndReference.moveTo(x, y); because it is possible that the method is called too early, before the popup element is created (this happens with JS, when the RadWindow is first shown). If it were a timing issue a timeout would usually resolve it, so you can try higher values like 100 or 200 ms.
- make sure the button does not perform a postback after executing the JS function that opens the next popup, especially if the ContentTemplate of the RadWindow is used.

If neither of these ideas help - sharing some code that can be used to reproduce the problem, along with the version number that you are using will help us investigate this case.

Regards,
Marin Bratanov
Telerik
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 the blog feed now.
0
Brixel
Top achievements
Rank 1
answered on 09 Sep 2013, 03:42 PM
Thanks for the reply. We figured out the issue this weekend, in some cases the "Y" parameter wasn't being passed correctly. I guess Chrome and IE 9 and 10 ignored this issue so it appeared to be working on those browsers since we weren't altering that placement.
Tags
Window
Asked by
Brixel
Top achievements
Rank 1
Answers by
Brixel
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or