This is a migrated thread and some comments may be shown as answers.

Non-date Value in DateTimePicker

1 Answer 45 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 02 Aug 2013, 07:09 PM
Is it possible for a user to type a non-date value (e.g. [EMPTY]) in the DateTimePicker? I tried everything I could think of, but it always formats the first bracket to a date value.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 07 Aug 2013, 10:42 AM
Hi Paul,

Thank you for writing.

You can set the NullableValue property to null, this way when RadDateTimePicker is not focused it will show its NullText which is an empty string by default. In case RadDateTimePicker is selected it will show you the last entered date which will allow the user to edit and enter the new date. Setting the NullableValue to null is the only case where the control can hold a non-datetime value.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Paul
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or