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

[Solved] Close window by clicking outside of it

2 Answers 227 Views
Window
This is a migrated thread and some comments may be shown as answers.
Hans Gunnar
Top achievements
Rank 1
Hans Gunnar asked on 17 Feb 2010, 11:00 PM
Hi, is it possible to close a RadWindow by just clicking outside of it on the screen/parent window?

I have tried searching for such functionality, but haven't been able to find it.

Tried to do it by creating an onclick-function on the body of the parent page, that searches for any active RadWindow and closes it if found. This kind of works - BUT it closes the window just as it's getting opened too, so for a user the screen just flickers as the window opens and closes again immediately.

Would be grateful for any help here.

2 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 22 Feb 2010, 07:02 AM
Hello Hans,

I believe that this code library will be of help.

Regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hans Gunnar
Top achievements
Rank 1
answered on 23 Feb 2010, 11:02 AM
Thank you very much for your code library addition. Works like a charm. :)
Tags
Window
Asked by
Hans Gunnar
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Hans Gunnar
Top achievements
Rank 1
Share this question
or