This is a migrated thread and some comments may be shown as answers.
add mask to calender
3 Answers 34 Views
This is a migrated thread and some comments may be shown as answers.
Faris Rezek
Top achievements
Rank 1
Faris Rezek asked on 14 Feb 2010, 02:40 PM
hi
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">

 

 

 

</Calendar>

 

 

 

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

 

 

 

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

 

 

 

DateFormat="dd-MM-yyyy" >

 

 

 

</DateInput>

 

 

 

</telerik:RadDatePicker>

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 16 Feb 2010, 07:39 PM
Just change the DateFormat and the DisplayFormat to ddMMyyyy. It will then display without the "-" or "/".

I hope that helps.
0
Faris Rezek
Top achievements
Rank 1
answered on 17 Feb 2010, 06:16 PM
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
12-12-2005
but what i need is when i typeing
"121"
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 "-")
0
Dimo
Telerik team
answered on 18 Feb 2010, 09:56 AM
Hello Faris,

http://www.telerik.com/community/forums/aspnet/calendar/datepicker-dateinput.aspx

Regards,
Dimo
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.
Asked by
Faris Rezek
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Faris Rezek
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or