force datepicker to open above input

2 posts, 0 answers
  1. vjeran
    vjeran avatar
    3 posts
    Member since:
    Feb 2015

    Posted 18 Feb 2015 Link to this post

    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.
  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 20 Feb 2015 Link to this post

    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.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top