add mask to calender

4 posts, 0 answers
  1. Faris Rezek
    Faris Rezek avatar
    8 posts
    Member since:
    Nov 2009

    Posted 14 Feb 2010 Link to this post

    how can i add mask to calender: 20-02-2007
    i want to type numbers only and not "-" or "/"
    for 20-02-2007
    i need onlyto type 20022007.


    <telerik:RadDatePicker ID="TBox" runat="server" Width="120px" Culture="Dutch (Netherlands)" ShowPopupOnFocus="True" Skin="Outlook">



    <Calendar ID="Calendar1" UseRowHeadersAsSelectors="False" runat="server" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook">








    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>




    <DateInput ID="DateInput1" DisplayDateFormat="dd-MM-yyyy" runat="server"




    DateFormat="dd-MM-yyyy" >















  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 16 Feb 2010 Link to this post

    Just change the DateFormat and the DisplayFormat to ddMMyyyy. It will then display without the "-" or "/".

    I hope that helps.
  3. DevCraft R3 2016 release webinar banner
  4. Faris Rezek
    Faris Rezek avatar
    8 posts
    Member since:
    Nov 2009

    Posted 17 Feb 2010 Link to this post

    no it is not what i mean
    i then it to be show as
    12-12-2005 with the "-"

    but when it typeing the date i need to see the - directly

    nokw i need to type 12122005 or 12-12-2005 and the result will be
    but what i need is when i typeing
    i will see 12-1 -   
    and the i countue typing "22005"
    and the reult will be  12-12-2005

    (while typing i need to see automaticly the "-")
  5. Dimo
    Dimo avatar
    8321 posts

    Posted 18 Feb 2010 Link to this post

    Hello Faris,

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