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

The calendar of DatePicker is behind Window

7 Answers 622 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Chu
Top achievements
Rank 1
Chu asked on 19 Jan 2012, 04:43 AM
I create a popup window with kendoWindow() and add a datepicker in it (kendoDatePicker). But when i click the datepicker, the calendar is hidden under the window.

Is this a bug? sorry if this thread is existed.

Thanks!

7 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Jan 2012, 09:20 AM
Hello Chu,

The z-index of the Window is greater than the z-index of the popup Calendar. In order to resolve this, please use the open event of the DatePicker and set a larger z-index style to its popup.

$(".k-calendar-container").parent().css("zIndex", "11000");

http://demos.kendoui.com/web/datepicker/events.html

Kind regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chu
Top achievements
Rank 1
answered on 20 Jan 2012, 03:21 AM
Sorry, but it doesn't work. Even when i try a higher z-index value (The open event is fired). I also found another problem that the datepicker calendar doesn't close itself when i open it and then close the popup window.

Thanks! sorry for my english.
0
Dimo
Telerik team
answered on 20 Jan 2012, 07:46 AM
Hello,

Yes, you need a timeout:

window.setTimeout(function(){ $(".k-calendar-container").parent(".k-animation-container").css("zIndex", "11000"); }, 1);

I can't reproduce the close problem, can you provide a runnable example?

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chu
Top achievements
Rank 1
answered on 20 Jan 2012, 05:05 PM
Thank you for your support! I will try it after the lunar new year. It's time to relax. My project  is stored in company PC ~.~.

All the best!
0
Chu
Top achievements
Rank 1
answered on 30 Jan 2012, 04:45 AM
Thank you for your supported, Dimo. It works well.

Best regards!
Chu.

0
Nishanth
Top achievements
Rank 1
answered on 03 Feb 2012, 01:03 AM
Hi,

This code is not working for me. Can you please post a working sample or complete snippet?
0
Chu
Top achievements
Rank 1
answered on 06 Feb 2012, 07:40 AM
I just do this:
<input type="date"/>
....
$("input[type=date]").kendoDatePicker({
        open:function(e)
            {                
                window.setTimeout(function(){ $(".k-calendar-container").parent(".k-animation-container").css("zIndex", "11000"); }, 1);
            }
      });
Good luck!
Tags
Date/Time Pickers
Asked by
Chu
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Chu
Top achievements
Rank 1
Nishanth
Top achievements
Rank 1
Share this question
or