Hi,
I'd like to open a RadWindow in parent page and call a function in the new opened RadWindow. I've taken the sample Calling Functions in Windows (http://www.telerik.com/help/aspnet-ajax/window_programmingcallingfunctions.html). But if I call the function in parent page I get this error: Object doesn't support this property or method. It looks like there is no function declared. But it is. Here is my code:
parent:
I'd like to open a RadWindow in parent page and call a function in the new opened RadWindow. I've taken the sample Calling Functions in Windows (http://www.telerik.com/help/aspnet-ajax/window_programmingcallingfunctions.html). But if I call the function in parent page I get this error: Object doesn't support this property or method. It looks like there is no function declared. But it is. Here is my code:
parent:
function onNewEntry(sender, title) {
var oWnd = $find("<%= RadWindow1.ClientID %>");
oWnd.set_offsetElementID(sender.id);
oWnd.show();
var nWnd = $find("<%=RadWindowManager1.ClientID %>").GetActiveWindow();
nWnd.get_ContentFrame().contentWindow.CalledFn(args);
}
on target page:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:HiddenField ID="HiddenField1" runat="server" />
<script type="text/javascript">
function CalledFn(args) {
var hf = $find("<%= HiddenField1.ClientId %>");
hf.value = args;
}
</script>
</form>
</
body>