close window when click outside popup

2 posts, 0 answers
  1. Vladyslav
    Vladyslav avatar
    6 posts
    Member since:
    Dec 2014

    Posted 25 Mar 2015 Link to this post

    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.
  2. Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 27 Mar 2015 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top