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

Modal dialog window background on specific div

3 Answers 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shabtai
Top achievements
Rank 1
Shabtai asked on 02 Jul 2013, 12:57 PM
Hi,

How can I change shadow background area to specific DIV while displaying modal kendo window?

Thank you.

Shabtai

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Jul 2013, 08:56 AM
Hello Shabtai,

I am afraid such an option is not available. You can show and hide a custom modal background on the page by using the Window events.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Christian
Top achievements
Rank 1
answered on 12 Aug 2014, 05:15 PM
Hi,

I would like to close the window with a click on the background. 
This would be nicer to use on mobile devices.

How can I do that?

Thank you!
0
Dimo
Telerik team
answered on 13 Aug 2014, 10:13 AM
Hello Christian,

You can attach a click handler on the page <body> and close the Window via its API method. Don't forget to check whether the original target element inside the event handler is outside the Window, otherwise you should not close it.

If the Window is modal, you can attach a click handler only to the modal overlay, which is a div.k-overlay element and a child of the <body>.

Regards,
Dimo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Window
Asked by
Shabtai
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Christian
Top achievements
Rank 1
Share this question
or