This topic contains 6 replies, has 2 voices, and was last updated by Sean Sean 1 year, 7 months ago.

datepicker in modal external page


  • Regs
    Participant

    Posts: 8
    Member Reply #6994

    Using Metronic v4.5.4

    Unable to get a datepicker to work in a modal window when the using an external page.

    Is this a known bug? I’ve tried everything I could think of using an external page in a modal…

    • This topic was modified 1 year, 7 months ago by  Regs.
    Sean
    Sean
    Keymaster

    Posts: 4206
    Support Staff Reply #7013

    Hi,

    You can check the datepicker demo on modal window here:
    http://keenthemes.com/preview/metronic/theme/admin_1/components_date_time_pickers.html

    By right it should work without any issue. If possible can you please provide us a test link to your developing site so we can check your code further.

    Thanks.


    Regs
    Participant

    Posts: 8
    Member Reply #7016
    This reply has been marked as private.

    Regs
    Participant

    Posts: 8
    Member Reply #7069

    Hi,

    Any luck digging into the issue?

    Cheers,

    Robin.

    Sean
    Sean
    Keymaster

    Posts: 4206
    Support Staff Reply #7073

    Hi,

    It seems you are not initializing the datepicker after the form content is loaded via ajax. Please try to initialize those datepicker inputs on ajax content loaded. You can refer to the datepicker documentation how to initialize a datepicker instances: https://bootstrap-datepicker.readthedocs.io/en/stable/

    Thanks.


    Regs
    Participant

    Posts: 8
    Member Reply #7081

    Awesome, that helped and all good now, thanks!

    Sean
    Sean
    Keymaster

    Posts: 4206
    Support Staff Reply #7100

    Great! You are welcome and good luck with your project 🙂

You must be logged in to reply to this topic.