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
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.
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.