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

[Solved] Sys.ArgumentOutOfRangeException when referring to object in parent window

4 Answers 442 Views
Window
This is a migrated thread and some comments may be shown as answers.
Lina
Top achievements
Rank 1
Lina asked on 31 Jan 2008, 03:45 PM
Hi,

I have a RadWindowManager in one webform - parent.aspx - which opens many RadWindows where NavigateURL is set to the child page - child.aspx.

From the child page I'm trying to show() a tooltip defined in the parent.  I'm calling the following javascript method in the child page:

function showMyToolTip()  
{                      
            var ParentToolTip = parent.$find("ParentToolTip");                          
            ParentToolTip.show();  


The tooltip is invoked successfully in the parent but I also get the following javascript error:

Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

Any ideas what is causing this error?

Thanks,
Lina 

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 31 Jan 2008, 04:12 PM
Hello Lina,

We've had such problem in the past ("Actual value was NAN" error) and it was related to one of the beta versions of ASP.NET AJAX and how our controls worked with it, but it was fixed in a following update.
If you have updated your RadWindow / RadToolTip Prometheus controls to the latest version, please make sure that you are using the latest official version of ASP.NET AJAX Extension 1.0 if you are using ASP.NET v2.x.

If you still experience problems, please open a support ticket and send us a small sample project which isolates the error. We will check it and do our best to help.




All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lina
Top achievements
Rank 1
answered on 31 Jan 2008, 05:12 PM
Hi Georgi,

I am using the latest version of Telerik Prometheus controls and ASP.NET AJAX Extension 1.0 for ASP.NET v2.0

I have opened a support ticket as suggested by you and have submitted a small stripped down project.  The ticket id is 119514.

Hoping for a quick reply!

Thanks,

Lina



0
Georgi Tunev
Telerik team
answered on 31 Jan 2008, 05:26 PM
Hi Lina,

Thank you for sending the sample - I will check it and get back to you first thing tomorrow.







Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Georgi Tunev
Telerik team
answered on 01 Feb 2008, 07:37 AM
Hello again Lina,

I've just answered your support ticket. I am pasting my reply below as I believe it could be of help to other community members as well:


The problem in this case is that you haven't set the RelativeTo property of the RadToolTip to "Element". By default, it is set to "Cursor", however in your case, the cursor is currently in another page displayed in the RadWindow's IFRAME. The position of the tooltip cannot be calculated correctly then and the error is thrown.





Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Lina
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Lina
Top achievements
Rank 1
Share this question
or