We want masking on DatePicker Control

6 posts, 0 answers
  1. saurabh
    saurabh avatar
    10 posts
    Member since:
    Jun 2010

    Posted 07 Jul 2010 Link to this post

    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.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 09 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Tim
    Tim avatar
    9 posts
    Member since:
    Jul 2011

    Posted 31 Oct 2012 Link to this post

    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?
  5. George
    Admin
    George avatar
    1332 posts

    Posted 05 Nov 2012 Link to this post

    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.

  6. Tim
    Tim avatar
    9 posts
    Member since:
    Jul 2011

    Posted 05 Nov 2012 Link to this post

    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.
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 08 Nov 2012 Link to this post

    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.

Back to Top
DevCraft banner