Hi Shinu and Georgi,
Thanks a lot for your help.
I added the code as following.
var pos = GetFirstAvailablePos();
oWnd = radopen(
"http://www.google.com/", null);
oWnd.SetTitle(
"Widget" +titleNum);
oWnd.SetSize(200, 200);
oWnd.DestroyOnClose =
true;
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize);
oWnd.add_close(OnClientClose);
oWnd.moveTo(pos.left, pos.top);
function OnClientClose(oWnd, eventArgs) {
oWnd.close();
oWnd.DestroyOnClose =
true;
}
Then I used the code as following, the closed window is still in the allwindows list, please help me to find out why, thanks again.
var allWindows = GetRadWindowManager().GetWindows();
for (var i = 0; i < allWindows.length; i++) {
......
}