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

4 posts, 0 answers
  1. Gagan
    Gagan avatar
    2 posts
    Member since:
    Jul 2014

    Posted 26 Aug 2014 Link to this post

    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 
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Aug 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gagan
    Gagan avatar
    2 posts
    Member since:
    Jul 2014

    Posted 27 Aug 2014 in reply to Yana Link to this post

    Hi,

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

    Best regards,
    Gagan Kumar
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Aug 2014 Link to this post

    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.
     
Back to Top