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

The code that closes window by clicking the default close icon

2 Answers 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Raymond Mui
Top achievements
Rank 1
Raymond Mui asked on 04 Sep 2008, 07:26 AM
I want to have a button to close the RadWindow within the window.  I know that i can use the window.close() method, but it causes some troubles if I have some scripts before/after the closing.

Usually, if I click the default close icon on the top right, the window just close (and it is exactly what I want).  May I ask what is the script/code, by default, is run when clicking that button?

Thanks

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Sep 2008, 08:27 AM
Hello Raymond,

In general, clicking the X button and calling oWnd.close() are basically the same. Can you please provide more detaisl about your exact setup and the problem that you experience?

It will be best to open a support ticket and to send us a small sample project where the problem can be reproduced. We will check it and get back to you with a solution.


Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Raymond Mui
Top achievements
Rank 1
answered on 04 Sep 2008, 08:49 AM
I just found that I have to put the Close button as part of the ajax panel, so that when I click on it, it would casue a full post-back.

Thanks.
Tags
Window
Asked by
Raymond Mui
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Raymond Mui
Top achievements
Rank 1
Share this question
or