good afternoon
I have and issue closing a radwindow with javascript
I'm using:
Which I know it works because when I put the code below in a button it closes the radwindow
my problem is that I have a toolbar with a button running the above code, it only refreses the content which in the radwindow but it doesnt close the radwindow (the toolbar is inside a radsliding panel). Please help.
Thanks
I have and issue closing a radwindow with javascript
I'm using:
<script type=
"text/javascript"
>
function
GetRadWindow() {
var
oWindow =
null
;
if
(window.radWindow) oWindow = window.radWindow;
else
if
(window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return
oWindow;
}
function
Close() {
GetRadWindow().close();
}
</script>
ClientScript.RegisterStartupScript(Me.GetType(), "", "Close();", True)
my problem is that I have a toolbar with a button running the above code, it only refreses the content which in the radwindow but it doesnt close the radwindow (the toolbar is inside a radsliding panel). Please help.
Thanks