SfDatePicker Set null

Is there a way to nullify a datepicker after the value was defined (when the databehind is of type DateTime?  ). When I first start the View, the data is null so the datepicker doesn't show any value, as expected. But after setting a date, we cannot go back to null (at least with a touch solution when the picker is opened) -> we can always check a keypress -> Delete, but it would be nicer a third button (ex: ok, cancel and null).
Thank you


2 Replies

MM Mageshyadav M Syncfusion Team April 11, 2013 06:25 AM UTC

Hi Miguel,

Please find the sample to achieve your requirement of setting Null to DatePicker Value after setting a date from the following location,

Sample Link : http://www.syncfusion.com/downloads/Support/DirectTrac/General/DatePickerSample977433964.zip

In the above sample we have customized the SelectorStyle to add Reset Button for achieving your requirement of setting Null to DatePicker Value after setting a date.

Please let us know if the sample assists your requirement.

Regards,
Mageshyadav.M



MG Miguel Goncalves April 11, 2013 10:31 PM UTC

Just Perfect! Many thanks for your support.

Loader.
Up arrow icon