Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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
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.