Hi,
I am using telerik window to perform some business logic. I want to close the window when a server side button is clicked. i am using the below code to do the same which is working on firefox and safari but not on IE 7.
could you please let me know the issue???
code:
string strClientScript = string.Format(@"
<script type='text/javascript'>
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if(window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
var currentWindow = oWindow;
currentWindow.Close('{0}');
</script>", jsonText);
lblCloseWindow.Text = strClientScript;
Thanks,
Mahesh
I am using telerik window to perform some business logic. I want to close the window when a server side button is clicked. i am using the below code to do the same which is working on firefox and safari but not on IE 7.
could you please let me know the issue???
code:
string strClientScript = string.Format(@"
<script type='text/javascript'>
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if(window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
var currentWindow = oWindow;
currentWindow.Close('{0}');
</script>", jsonText);
lblCloseWindow.Text = strClientScript;
Thanks,
Mahesh