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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to clear a datetimepicker widget?

rpallares
1-Visitor

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
Aanjan
12-Amethyst
(To:rpallares)

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.

Announcements


Top Tags