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
close icon

DateTimePickerAdv and Null Dates

Hi -
When i expose the None button and select it the date displayed in the textbox of the control correctly clears out to the NullString value. However, when i tab off of the control, the control's display changes back to the previous date value.
You can see this behavior in the sample shipped with the product (DateTimePickerAdv demo).

Note that i am using version 5.0.2.25.
Is this a bug, or is there something else that needs to be done to prevent this behavior.

Thanks,
Julie


1 Reply

AD Administrator Syncfusion Team March 28, 2008 12:00 AM UTC

Hi Julie,

Thank you for your interest in Syncfusion products.

You can change this behavior by setting the NullmodeKeyReset property of dateTimePickerAdv1 to ArrowKeys or NumericKeys. By default it is set to Any. Please refer to the code snippet given below:


//Please set NullModeKeyReset property to ArrowKeys or NumericKeys
this.dateTimePickerAdv1.NullModeKeyReset = Syncfusion.Windows.Forms.Tools.NullModeKeyReset. ArrowKeys;


Please let me know if you need any further information.

Regards,
Vinoth






Loader.
Live Chat Icon For mobile
Up arrow icon