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

force datepicker to open above input

1 Answer 878 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
vjeran
Top achievements
Rank 1
vjeran asked on 18 Feb 2015, 10:03 PM
is it possible to force datepicker to open above input field. As far as i get it datepicker by default opens below input but if it hasnt got the space it opens above if there is space above. Now i would like to force it to open above input by default because that fits my app design perfectly.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Feb 2015, 10:08 AM
Hello vjeran,

In general, the popup element calculates its position automatically based on the space around the anchor element.

This functionality can be modified passing specific popup options in the widget configuration:
popup: {
    position: "bottom left",
    origin: "top left"
},

Here is a Dojo demo that demonstrates this suggestion. Note that there are side affects of modifying the popup options, which cannot be modified without additional JavaSctript code.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
vjeran
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or