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

Telerik Window Not Closing on IE 7

1 Answer 34 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mahesh Babu
Top achievements
Rank 1
Mahesh Babu asked on 23 Jul 2009, 12:16 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 24 Jul 2009, 01:57 PM
Hi Mahesh Babu,

Would you please try to execute the javascript with some timeout? It will be also helpful if you provide more details about your configuration, e.g we had a similar problem when the RadWindow has its autosize functionality turned on. If this is teh problem, you can either upgrade to a later version where the issue is fixed or use teh timeout approach which I already suggested above.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Mahesh Babu
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or