We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to edit SfDateTimeEdit on Null value using keyboard

i have used SfDateTimeEdit control with allowNull = true and set value as Null.

Now i am  not able to set or edit the control using keyboard...

is there any option like which works well in case of datetimepicker advance control.


3 Replies

HN Harinath Navaneethakrishnan Syncfusion Team November 9, 2022 07:24 AM

Hi singh,

We are able to edit the datetimeedit value when it is null with NumericKeys using the keyboard. Please refer to the sample and the video from the attachment for your reference.

Currently, there is no support like NullModeKeyReset in DateTimePickerAdv. Could you please elaborate your requirement that you want to meet? based on that we will try to provide a solution with existing API or we will consider it as a feature request.

Attachment: SfDateTimeEdit2_657a86f0.zip

SI singh November 9, 2022 11:54 PM

sir u r using control keydown event to set today date to control..... this will always set current date to control. will not b able to change the date...

Please find attached here with my sample project. in which if we set null date.. we are not able to edit it with keyboard.

Please check sample .


private void SfDateTimeEdit1_KeyDown(object sender, KeyEventArgs e)


            sfDateTimeEdit1.Value = DateTime.Today;

            this.sfDateTimeEdit1.Format = "dd/MM/yyyy";


Attachment: WindowsApplication2_a1e937d1.zip

HN Harinath Navaneethakrishnan Syncfusion Team November 11, 2022 07:27 AM

Hi singh,

We are unable to reproduce the issue from our end in version which is mentioned in the ticket. The reported issue occurred before version and it was fixed in version


Could you please share the version that you are using?

Please refer to the sample and video for your reference

Attachment: SfDateTimeEdit_fd366717.zip

Live Chat Icon For mobile
Up arrow icon