Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Jump 2348 posts 14896 karma points MVP 8x c-trib
    Nov 09, 2015 @ 21:39
    Kevin Jump
    0

    Using Umbraco DatePicker in a dialog

    Hi,

    As part of a property editor, i want to have a datepicker in the dialog pane when the user is entering values.

    I have followed (read cut and paste) the basics of this outlined in another post : https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/55678-How-to-reuse-an-Umbraco-Property-Editor-from-dialogService#comment-191268

    Which is great and works fine in Umbraco 7.1.9 - but when I move to Umbraco 7.3.1 the values don't get returned.

    I've played about with return values, but it looks like datepicker.value isn't set when the user picks a date.

    It looks like this happened around 7.2.8 - and can be fixed with a v.scary hack https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type/questions-bugs-issues-feedback/70317-datepicker-not-populating-correctly-umbraco-728

    I don't want to do the hack so - what is the best practice for using the datepicker in a dialog.

    Should i?

    1. Never use the inbuilt datepickers and roll my own?
    2. do something clever to get the value set and back from the dialog?

    i would rather use the datepicker if I can, because then I reduce the risk of creating clashes or something with my own scripts/styles.

    Thanks.

  • Sam 26 posts 137 karma points c-trib
    Nov 10, 2015 @ 09:37
    Sam
    0

    I am also having this problem in a similar situation. Couldn't find a way to save this post(?) so commenting to find it later.

    Will let you know if I can come up with an alternative solution to the hack as well.

  • Kevin Jump 2348 posts 14896 karma points MVP 8x c-trib
    Nov 11, 2015 @ 11:00
    Kevin Jump
    0

    Yeah,

    I suppose it comes down to is using the built in elements supported in package dialogs, are do we have to write our own?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies