Hi,
I have a page with a couple of RadWindows.
The statement $find("<%=rwPrototypeSummary.ClientID%>") returns null, while similar statement for other RadWindows works fine.
Not sure what am I missing.
The markup is as follows:
<telerik:RadWindowManager ID="Singleton" runat="server" Animation="None" Behaviors="Move"
Width="900px">
<windows>
<telerik:RadWindow ID="rwProtoResponseMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwProtoResponseMediaEdit_ClientClose"
BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
NavigateUrl="~/Agency/Authoring/ProtoResponseMediaEdit.aspx">
</telerik:RadWindow>
<telerik:RadWindow ID="rwResource" runat="server" Title="Pick a Resource" VisibleStatusbar="false"
Modal="true" NavigateUrl="~/Agency/Search/ResourceSearch.aspx"
Width="800" Height="650">
</telerik:RadWindow>
<telerik:RadWindow ID="rwPatientProfileEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPatientProfileEdit_ClientClose"
BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Patient"
NavigateUrl="~/Agency/Authoring/PatientProfileEditEdit.aspx">
</telerik:RadWindow>
<telerik:RadWindow ID="rwPrototypeMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeMediaEdit_ClientClose"
BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
NavigateUrl="~/Agency/Authoring/PrototypeMediaEdit.aspx">
</telerik:RadWindow>
<telerik:RadWindow ID="rwPrototypeSummary" Behaviors="Move, Resize, Maximize" Skin="Telerik"
VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeSummary_ClientClose"
BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Summary"
NavigateUrl="~/Agency/Authoring/PrototypeSummary.aspx">
</telerik:RadWindow>
</windows>
</telerik:RadWindowManager>
The Javascript is as follows:
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
<script type="text/javascript">
function OpenPrototypeSummary(pid) {
var url = '<%= ConvertRelativeUrlToAbsoluteUrl("~/Agency/Authoring/PrototypeSummary.aspx") %>';
url = url + "?id=" + pid;
console.log(url);
var oWnd = $find("<%=rwPrototypeSummary.ClientID%>");
console.log(oWnd);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
//oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
oWnd.show();
oWnd.setSize(950, 850);
oWnd.setUrl(url);
oWnd.minimize();
oWnd.maximize();
oWnd.restore();
oWnd.center();
}
function rwPrototypeSummary_ClientClose(sender, args) {
var arg1 = args.get_argument();
}
</script>
</telerik:RadScriptBlock>