Non-date Value in DateTimePicker

2 posts, 0 answers
  1. Paul
    Paul avatar
    23 posts
    Member since:
    Feb 2013

    Posted 02 Aug 2013 Link to this post

    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.
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 07 Aug 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top