function OnClientClose(oWnd, args) {
var arg = args.get_argument();
alert(" OnClientClose faultcode " + arg.faultcode);
if (arg) {
var faultcode = arg.faultcode;
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Finish," + arg.faultcode);
}
}
function openwindow() {
var oWnd = radopen("FaultTree.aspx", "FaultTreeWindow");
return;
}
The page structure means the radwindow is called from a usercontrol but the radwindowmanager is on the page that hosts the user control. I've taken the ajax call out and the onclientclose is still not called again, it seems the reference to onclientclose is removed once the window is closed the first time.
The radwindowmanager declaration is shown below, has anyone got any ideas?
<telerik:RadWindowManager
ID="RadWindowManager1"
ShowContentDuringLoad="False"
VisibleStatusbar="False"
ReloadOnShow="True"
DestroyOnClose="true"
Width="500px"
Height="400px"
Modal="true"
runat="server"
InitialBehavior="None">
<Windows>
<telerik:RadWindow runat="server"
ID="CostDetailsWindow"
Behaviors="Close"
NavigateUrl="~/CostDetails.aspx">
</telerik:RadWindow>
<telerik:RadWindow runat="server"
ID="ResourceDetailsWindow"
Behaviors="Close"
NavigateUrl="~/ResourceDetails.aspx">
</telerik:RadWindow>
<telerik:RadWindow runat="server"
ID="FaultTreeWindow"
OnClientClose="OnClientClose"
NavigateUrl="~/FaultTree.aspx">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
I'm using the 2009 Q1 version of the ASP.NET components.
Thanks for any assistance
Tim



hi,
i am using Radtreeview for asp.net ajax controls.
in java script,
node.get_checked() code gives error as " Object doesn't support this property or method"
my code is,
function AfterCheck(node)
{
if (!node.Checked && node.Parent != null)
{
node.Parent.UnCheck();
}
var siblingCollection = (node.Parent != null) ? node.Parent.Nodes : node.TreeView.Nodes;
var allChecked = true;
for (var i=0; i < siblingCollection.length; i++)
{
if (!siblingCollection[i].Checked)
{
allChecked =
false;
break;
}
}
if (allChecked && node.Parent != null)
{
node.Parent.Check();
}
UpdateAllChildren(node.Nodes, node.Checked);
}
function
UpdateAllChildren(nodes, checked)
{
var i;
for (i=0; i<nodes.length; i++)
{
if (checked)
nodes[i].Check();
else
nodes[i].UnCheck();
if (nodes[i].Nodes.length > 0)
UpdateAllChildren(nodes[i].Nodes, checked);
}
}
previous version (Rad controls for Asp.Net) the above code works fine,
can u give me the solution.
thanks,

