Adding Mask to RadDatePicker

10 posts, 0 answers
  1. Wassim Brinsi
    Wassim Brinsi avatar
    13 posts
    Member since:
    Dec 2009

    Posted 18 Dec 2009 Link to this post

    Hello,
    I've just choosen Telerik for our new silverlight project but still one feature asked by the customer.
    We want to add mask to the RadDatePicker "dd/MM/yyyy". 
    The customer wants to write 2 numbers for days and the cursor must jump automatically after the "/". Then he enter two numbers for months and the cursor jump again after the second slash (/). and cusmtomer enter the year.
    The customer must still be able to shoose from the calender. that's why we have chosen the RadDatePicker.
    Is there a Way to Add mask to RadDatePicker with jump mechanism. 
    Or should i implement it using key up to add slashes automatically (i tried this solution but i wasnt able to access the text entered by the user, because the raddatepicker convert it automatically to date)
    I hope i was enough clear.
    Can you advise me or help me issue this.
    Thank u 
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 19 Dec 2009 Link to this post

    Hi Wassim Brinsi,

    Find the attached project, showing you some possible way to use RadMaskedTextBox and RadDatePicker

    Best wishes,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Wassim Brinsi
    Wassim Brinsi avatar
    13 posts
    Member since:
    Dec 2009

    Posted 21 Dec 2009 Link to this post

    Hi,
    I would like to think you for your quick and consistent reply.
    This was very helpfull for me.
    still only how to jump automatically between days months and years with insertion of slashs between them without having to use arrows.
     I have to look for its feasability. Otherwise i have to convince the customer to change his habits.

    Best Regards
  5. Lakshmi Satish
    Lakshmi Satish avatar
    8 posts
    Member since:
    Dec 2009

    Posted 07 May 2010 Link to this post

    Hi,
     
    I am using the sample that you have provided
    But I want to have empty defaultly and then when I press any key then the format should show.

    Could you please make this change

    Regards
    lakshmi
  6. Lakshmi Satish
    Lakshmi Satish avatar
    8 posts
    Member since:
    Dec 2009

    Posted 10 May 2010 Link to this post

    Hi,
     
    I am using the sample that you have provided
    But I want to have empty defaultly and then when I press any key then the format should show.

    Could you please make this change

    Regards
    lakshmi
  7. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 12 May 2010 Link to this post

    Hello Lakshmi Satish,

    Thank you for the feedback we will consider your suggestions.
    We are aware of the problem connected with DateTime mask and null values. This issue is already added in our to do list and will be fixed as soon as possible.

    Best wishes,
    Bobi
    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.
  8. Tim
    Tim avatar
    9 posts
    Member since:
    Jul 2011

    Posted 31 Oct 2012 Link to this post

    Are these issues resolved in any of the version of Telerik controls?
  9. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 02 Nov 2012 Link to this post

    Hello James,

    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.

    All the best,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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

    Posted 05 Nov 2012 Link to this post

    Thanks Vladi for giving me the details of the newly introduced control. 

    However, I was not able to get the control RadMaskedDateTimeInput in my version of Telerik control. Could you please suggest me which version has this control? And if you could provide me with some sample implementation that would be ideal.
  11. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 07 Nov 2012 Link to this post

    Hello James,

    RadMaskedDateTimeInput should be available in the Q1 2011 0419 release of RadControls.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner