Creating a nullable date time picker based on SfPicker with an extra button in the footer named Clear.

I need to create a nullable DateTimePicker.

So I see that there is a datetimepicker based on SfPicker. The idea is that I add a button in the footer named Clear and to set the result to null.

Is it possible to make the SfPicker nullable and to add a custom button to the footer?
Clicking this "clear" button the value should be set to null.

5 Replies

VA Vinnalan Aravazhi Syncfusion Team April 7, 2018 02:38 AM UTC

Hi Martin,

Thanks for contacting Syncfusion support.

We have checked your requirement from our side and we have created a sample based on your requirement. In this sample we have created custom footer to null the SelectedItem. Please find the sample from below link.

Sample: http://www.syncfusion.com/downloads/support/forum/136833/ze/GettingStartedPicker-42237973 

Please let us know if your requirement differs.

Regards,
Vinnalan K A.

 



PI Pablo Islas June 21, 2018 03:56 PM UTC

would it be possible to do this same thing, but keep the original buttons intact as well?


VA Vinnalan Aravazhi Syncfusion Team June 22, 2018 09:26 AM UTC

Hi Pablo,

Thanks for contacting Syncfusion support.

We have checked your requirement from our side. In our current implementation we do not have direct support for clear button and keep the original buttons intact. We have considered your requirement "Nullable picker with extra button in footer named Clear" as a feature request.

It will be available in any of our upcoming release. Please check our website periodically to know the status of the features that are implemented.

We have created a sample based on your requirement. In this sample we have created custom footer with clear button, Ok and Cancel buttons similar to original buttons. Please find the sample from below link.

Sample: http://www.syncfusion.com/downloads/support/forum/136833/ze/GettingStartedPicker-1401986629 

Please let us know if you have any other queries.

Regards,
Vinnalan K A.  



AH Amir H replied to Vinnalan Aravazhi September 15, 2020 12:06 AM UTC

Hi Pablo,

Thanks for contacting Syncfusion support.

We have checked your requirement from our side. In our current implementation we do not have direct support for clear button and keep the original buttons intact. We have considered your requirement "Nullable picker with extra button in footer named Clear" as a feature request.

It will be available in any of our upcoming release. Please check our website periodically to know the status of the features that are implemented.

We have created a sample based on your requirement. In this sample we have created custom footer with clear button, Ok and Cancel buttons similar to original buttons. Please find the sample from below link.

Sample: http://www.syncfusion.com/downloads/support/forum/136833/ze/GettingStartedPicker-1401986629 

Please let us know if you have any other queries.

Regards,
Vinnalan K A.  


Hi,

Is there any update on it?

It's been over 2 years so I hope there has been some progress. 

My requirement is to have a Nullable DateTime picker and a Bindable property called SelectedDateTime 

I am also trying to add the seconds but for some reason days and months are mixed up and years are only displayed in 2-digit format! 



Thanks a lot!


SP Sakthivel Palaniyappan Syncfusion Team September 15, 2020 04:47 PM UTC

Hi Amir,

Sorry for the inconvenience.

Query 1: My requirement is to have a Nullable DateTime picker and a Bindable property called SelectedDateTime

We have not implemented the nullable Picker in SfPicker and we will implement and  include the feature in our any of the upcoming main release.
Please follow the feedback portal below to know this feature 's status.

Feedback portal:
https://www.syncfusion.com/feedback/12865/support-nullable-dates

Query 2:I am also trying to add the seconds but for some reason days and months are mixed up and years are only displayed in 2-digit format!

We have analyzed your query and created sample based on your provided screenshot, but we could not reproduce the reported issue, please find the sample from below.

Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/DatePicker_Footer-639625642.zip

Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. This will be helpful for us to investigate further and provide you a better solution at the earliest.

Regards,
Sakthivel P.


Loader.
Up arrow icon