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

Auto date in datetimepicker textbox

1 Answer 112 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 11 Sep 2012, 12:22 PM
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 ?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Sep 2012, 11:13 AM
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 >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or