1 Reply Latest reply on Nov 9, 2016 12:09 PM by aanjan RSS
    rpallares Explorer

    How to clear a datetimepicker widget?

    Hi all,

     

    I want to clear a datetime picker on button click.

    This case can be useful on a form which you select a date and you want to clear your selection.

    Basically I want that the picker revert to it's state when we uncheck the "InitializeWithCurrentDateTime" checkbox, none date is defined:

    It's possible to clear a text with an empty string, but I did not found anything for datetime picker widget (or a dropdown list to revert to the unselected state).

    I tried to set an undefined or null value from a service to the widget value, but nothing is really returned and the picker is not affected.

     

    How can I do that?

     

    Regards