Auto date in datetimepicker textbox

2 posts, 0 answers
  1. Mukesh
    Mukesh avatar
    1 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    Hi,


    My problem is that if user is start typing in text box of datetimepicker the control is automatically set year and day to mindate year and day.

    But our customer don't want this. he want whatever he type in textbox should be there don't come anythig automatically.

    Is that possible ?
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 12 Sep 2012 Link to this post

    Hi Mukesh,

    Thank you for contacting Telerik support.

    RadDateTimePicker is a strongly validated control - when the user types the date in, the value of the control is a valid date. This is a desired behavior and cannot be modified.

    I would like to suggest using RadMaskedEditBox editor with MaskType = Standard and Mask = "##/##/####", instead of RadDateTimePicker editor. The disadvantage of this scenario is that you should create validation logic for user input (for example 31/06/2012 which is incorrect).

    I hope this helps.

    All the best,
    Peter
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top