7 Answers, 1 is accepted
Thank you for contacting us.
Could you please be more specific. What do you mean by saying: "the previous versions had an input mask."? If you could give us some more details on that it would be very helpful.
I will be glad to assist you further.
George
the Telerik team
if you type in 12012010 the "/" don't appear
We made some changes in the Parser in date/time pickers and that it is what causes the described behavior. It's logged as feature request in our Public Issue Tracking System (PITS) and you can affect its priority by voting for it. The more clients' requests we receive the sooner we'll include it in our development plans. You can track this progress in our PITS with Issue ID = 2766.
You could workaround it by implementing your own parser that suits your needs. You need to handle the ParseDateTimeValue event and to parse the input string to DateTime value. Attached you can find a sample that I made. It illustrates how to accomplish the task.
Please do not hesitate to contact us if you require any further information.
All the best,
George
the Telerik team
thanks again
Sorry for the missing attachment. Here it is.
George
the Telerik team
How do I make the slashes "/" appear as you type?
thanks
ParseDateTimeValue event fires when you lose focus on the RadDateTimePicker or when you enter Enter, but not while typing. Placing slashes while you are typing is not supported feature. I would suggest using RadMaskedTextBox control if you want to accomplish this.
If you want to parse string to DateTime, for example 10112010 to 10.11.2010, I would suggest you to use ParseDateTimeValue. You could:
- Get the inputted text from args.TextToParse property
- Implement your own logic to convert it to DateTime value
- Set the result to args.Result
- Set IsParsingSuccessful to true.
I hope this helps.
George
the Telerik team