This is a migrated thread and some comments may be shown as answers.

Rad Window Destroy issue

1 Answer 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
Surendar S
Top achievements
Rank 1
Surendar S asked on 07 Feb 2012, 08:40 AM
Hi,
   I am using the Rad window to load the pop up page. I use the below code to open the radwindow.
window.radopen("UserPage.aspx?UserId=" + value, "RadWindowManagerUser"); ///Javascript code

For closing the window i use the below coding in javascript

 

 

 

function click_handler(sender, e) {

 

 

 

if (e.get_item().get_value() == 'Closebtn') {

 

closewindow();

}

}

 

 

function closewindow() {

 

getwindowclose().Close();

}

 

 

function getwindowclose() {

 

 

 

var oWindow = null;

 

 

 

if (window.radWindow) oWindow = window.radWindow;

 

 

 

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

 

 

 

return oWindow;

 

}

The issue is even after the window is closed using th eabove code, the window is still persisting(it is not visible). It is not completely destroyed. I need to destroy the window. How this can be accomplished?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Feb 2012, 08:52 AM
Hello Surendar,

Try setting DestroyOnClose as true for the RadWindow.

-Shinu.
Tags
Window
Asked by
Surendar S
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or