cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear a datetimepicker widget?

Highlighted
Newbie

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

1 REPLY 1

Re: How to clear a datetimepicker widget?

Rafael, since the default Date Time Picker gets rendered on Mashup load, it will not get redrawn until you do a hard browser refresh. Even if you use something like, say a Button to trigger the Mashup Refresh event, it will refresh data, but will not redraw widgets.