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

Sys.ArgumentTypeException when moving radWindow

4 Answers 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 May 2008, 10:08 AM
Hello,

I am having the following client side error when i try to move my radwindow:

Sys.ArgumentTypeException: Object of type 'String' cannot be converted to type 'Number'.
Parameter name: x

It's getting a weird behavior, im not being able to move any of my radwindows, and when i do mouseDown on any radWindow it's moving to the right side of the page. I only get that exception on some of them.

Any ideia?

Thanks in advance

4 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 02 May 2008, 10:19 AM
I'm getting the error here: 

Sys.UI.DomElement.setLocation = function Sys$UI$DomElement$setLocation(element, x, y) {

/// <param name="element" domElement="true"></param>

/// <param name="x" type="Number" integer="true"></param>

/// <param name="y" type="Number" integer="true"></param>

var e = Function._validateParams(arguments, [

{name: "element", domElement: true},

{name: "x", type: Number, integer: true},

{name: "y", type: Number, integer: true}

]);

if (e) throw e;

var style = element.style;

style.position = 'absolute';

style.left = x + "px";

style.top = y + "px";

}

I'm getting the x and y variables the value of  NaN0[object]0

 

 

 

0
David
Top achievements
Rank 1
answered on 02 May 2008, 11:14 AM
If it helps somehow, on _activeDragVisual.startingPoint, both x and y have the value NaN0. I'm trying to figure the rest lol :)
0
David
Top achievements
Rank 1
answered on 02 May 2008, 12:06 PM
When startingPoint is set to a value, on getScrollOffset function, i am getting dialogWindow parentElement as aspnetForm and the moment you get that aspnetForm scrollTop and scrollLeft, both return an 0[object]0, instead of just returning value 0.. that's the reason i am getting that error. Any solutions?

Thanks in advance
0
Georgi Tunev
Telerik team
answered on 07 May 2008, 05:39 AM
Hello David,

I am afraid that the provided information is not enough for us to determine what the reason for the problem might be. Please open a support ticket and send us the following:
  1. A small sample project where the problem can be reproduced.
  2. Step-by-step reproduction details
Once we have a better view over your case, we will do our best to help.


Kind regards,
Georgi Tunev
the Telerik team

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