Here is my RadWindow declaration:
My previous JavaScript code to open the window was a little redundant if not messy (BEFORE SETTING CLIENTIDMODE = STATIC)
I wanted to set the clientidmode to static and change the code to
which returns a RadWindow object. When the window goes to open, however I get a JavaScript error and the window is blank:
Microsoft JScript runtime error: 'this._contentElement.style' is null or not an object
The line in ScriptResource:
<
telerik:RadWindow
ID
=
"VideoPlayerWindow"
ClientIDMode
=
"Static"
runat
=
"server"
Modal
=
"True"
VisibleOnPageLoad
=
"false"
EnableShadow
=
"true"
Behaviors
=
"Close"
ReloadOnShow
=
"true"
AutoSize
=
"true"
OnClientBeforeClose
=
"StopVideo"
>
<
ContentTemplate
>
<
asp:UpdatePanel
ID
=
"VideoPlayerUpdatePanel"
runat
=
"server"
UpdateMode
=
"Always"
>
<
ContentTemplate
>
<
uc1:ucVideo
ID
=
"Video1"
runat
=
"server"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
ContentTemplate
>
</
telerik:RadWindow
>
My previous JavaScript code to open the window was a little redundant if not messy (BEFORE SETTING CLIENTIDMODE = STATIC)
...
if (clientId == "VideoPlayerWindow") { oWnd = $find("<%=VideoPlayerWindow.ClientID%>"); }
...
I wanted to set the clientidmode to static and change the code to
oWnd = $find(clientId);
which returns a RadWindow object. When the window goes to open, however I get a JavaScript error and the window is blank:
Microsoft JScript runtime error: 'this._contentElement.style' is null or not an object
The line in ScriptResource:
}
if(this._dockMode){this._contentElement.style.width="1px";
I am using the 2010.3.x version of the RadControls for ASP.NET. Thanks!