Hi,
I have got a problem when using the setActive Javascript function on a RadWindow. The error is :
"Sys.ArgumentNullException: Value cannot be null.Parameter name: element".
I don't understand why the parameter is null. The parameter corresponds to oWnd._popupElement.
May anyone help me fixing this error ?
Below is an extract of the Javascript code that generates the exception :
The RadWindow that is used is described in the following aspx code-file :
I have got a problem when using the setActive Javascript function on a RadWindow. The error is :
"Sys.ArgumentNullException: Value cannot be null.Parameter name: element".
I don't understand why the parameter is null. The parameter corresponds to oWnd._popupElement.
May anyone help me fixing this error ?
Below is an extract of the Javascript code that generates the exception :
// 1) User-code file, launched at body:onLoad() event
var
oWnd = $find(
"helpWindow"
);
oWnd.setSize(400,500);
oWnd.setActive(
false
);
// 2) Telerik code file
setActive:
function
(c){
var
f=
this
._popupElement;
if
(!c){Sys.UI.DomElement.addCssClass(f,
"rwInactiveWindow"
); // f is null
[...]
// 3) Microsoft ASP.Net Ajax code file
Sys.UI.DomElement.addCssClass =
function
Sys$UI$DomElement$addCssClass(element, className) {
/// <summary locid="M:J#Sys.UI.DomElement.addCssClass" />
/// <param name="element" domElement="true"></param>
/// <param name="className" type="String"></param>
var
e = Function._validateParams(arguments, [
{name:
"element"
, domElement:
true
},
{name:
"className"
, type: String}
]);
if
(e)
throw
e; // The exception is thrown here
if
(!Sys.UI.DomElement.containsCssClass(element, className)) {
if
(element.className ===
''
) {
element.className = className;
}
else
{
element.className +=
' '
+ className;
}
}
}
The RadWindow that is used is described in the following aspx code-file :
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"true"
runat
=
"server"
EnableShadow
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"HelpWindow"
runat
=
"server"
NavigateUrl
=
"Help.aspx"
ReloadOnShow
=
"true"
VisibleOnPageLoad
=
"false"
ShowContentDuringLoad
=
"false"
Behaviors
=
"Close, Maximize, Resize"
Width
=
"500px"
Height
=
"400px"
Modal
=
"true"
Animation
=
"Fade"
KeepInScreenBounds
=
"true"
RestrictionZoneID
=
"form2"
AutoSizeBehaviors
=
"Height"
>
</
telerik:RadWindow
>