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

Is there any way to use masked date time input in date time picker

3 Answers 253 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Gagan
Top achievements
Rank 1
Gagan asked on 26 Aug 2014, 05:33 AM
I want to extend date time picker control and instead of plain text box i want to use telerik masked date time input control in that.  Kindly suggest how can i update the default template for the date time picker control to replace textbox 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 Aug 2014, 11:57 AM
Hi Gagan,

In general, you could take a look at  Editing Control Templates topic in our documentation which explains how you can extract and edit the template of any of our WPF controls.

However, please note that replacing the TextBox directly with MaskedDateTimeInput control is not a tested scenario and we cannot guarantee that it will work without problems - there can be unexpected results due to the specifics of the parsing logic of DateTimePicker control.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Gagan
Top achievements
Rank 1
answered on 27 Aug 2014, 06:55 AM
Hi,

Thanks for the reply. Is there any other way to provide masking in datepicker control?

Best regards,
Gagan Kumar
0
Yana
Telerik team
answered on 27 Aug 2014, 09:20 AM
Hi Gagan,

I am afraid that RadDateTimePicker does not provide masked input by itself. 

However, you could customize its format as well as parsing logic in order to make it suitable to your scenario.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
DateTimePicker
Asked by
Gagan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Gagan
Top achievements
Rank 1
Share this question
or