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

close window when click outside popup

1 Answer 1516 Views
Window
This is a migrated thread and some comments may be shown as answers.
Vladyslav
Top achievements
Rank 1
Vladyslav asked on 25 Mar 2015, 10:20 AM
Hi,

I need to make Window close when you click outside it.
I need so it work the same as ColorPicker "popup". (or like dropdown)

Can anyone say how to make it in proper way? :)

Thanks,
Vlad.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Mar 2015, 05:54 AM
Hi Vlad,

You can attach a click handler to the page <body> and check if the event target is outside the Window instance wrapper.

http://docs.telerik.com/kendo-ui/framework/widgets/wrapper-element

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Vladyslav
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or