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

We want masking on DatePicker Control

5 Answers 131 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 07 Jul 2010, 09:36 AM
We are using DatePicker Control. Currently when we enter any kind of value(alphanumeric) in textbox (which is part of datepicker control) it accepts. I want somekind of masking on it so that it can only accept a valid date in it and we can only enter a valid date in TextBox it couldn't accept anything else.

5 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Jul 2010, 03:14 PM
Hi saurabh,

Thank you for contacting us.

This is not supported feature of RadDatePicker. However, you could edit the template and instead of TextBox you could use RadMaskedTextBox

Moreover, you could try our new RadDateTimePicker control instead of RadDatePicker. This new control will be officially added in our next release next week. You can see the beta version here.

I hope this information helps. I will be glad to assist you further.
 

Kind regards,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim
Top achievements
Rank 1
answered on 31 Oct 2012, 07:45 AM
Hi,

I checked the RadDateTimePicker control from the link you provided. I don't see anything like configuring mask . Could you please provide how can I have the masked date time picker control?
0
George
Telerik team
answered on 05 Nov 2012, 10:17 AM
Hello James,

 
As I note, masking the input of the RadDateTimePicker is not support out of the box. I would suggest editing the control template and instead of TextBox you could use RadMaskedTextBox

Hope this helps.

Kind regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tim
Top achievements
Rank 1
answered on 05 Nov 2012, 12:37 PM
Hi George,

I got two contradictory messages from you and Vladi, 

Vladi said a couple of days back "The plans on implementing a input mask into the DatePicker control were canceled because we think the control is better used when having a free input and show a tooltip with the format of the input while typing in the control.

We have developed another control RadMaskedDateTimeInput that could be used if you want to have an input mask. You can read this help article that goes through on how to use RadMaskedDateTimeInput.
" in the thread Click Here.

However, I was not able to get the control RadMaskedDateTimeInput in my version of Telerik control. Could you please suggest me which way to go? And if you could provide me with some sample implementation that would be ideal.
0
Vladi
Telerik team
answered on 08 Nov 2012, 03:55 PM
Hi James,

I replied to you in the other forum post concerning the version of Telerik control in which you could find RadMaskedDateTimeInput.

We tested the approach described by George but we hit some issue on the way, it is recommended to use the RadMaskedDateTimeInput control if you want a masked time input without the DropDown portion of the DateTimePicker control.

Currently we do not have a control that combines the functionality of RadDateTimePickers dropdown calendar and the mask input of RadMaskedDateTimeInput. If you want that behavior you will need to implement a custom UserControl.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
saurabh
Top achievements
Rank 1
Answers by
George
Telerik team
Tim
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or