This is a migrated thread and some comments may be shown as answers.

Input mask

7 Answers 149 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 12 Aug 2010, 08:01 PM
What happened to the input mask...   I just upgraded - the previous versions had an input mask.

Everytime I update to the newer controls things get broken and my users 'flip out'.

thanks

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 17 Aug 2010, 03:58 PM
Hi Jon,

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.

Greetings,
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
0
Jon
Top achievements
Rank 1
answered on 17 Aug 2010, 03:59 PM
When you typed in the data the "/" automatically showed up as mask...

if you type in 12012010  the "/" don't appear
0
Accepted
George
Telerik team
answered on 18 Aug 2010, 08:25 AM
Hi Jon,

 

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
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
0
Jon
Top achievements
Rank 1
answered on 18 Aug 2010, 01:12 PM
Where can I find the attachment.. the sample project.
thanks again
0
George
Telerik team
answered on 18 Aug 2010, 04:12 PM
Hi Jon,

Sorry for the missing attachment. Here it is.

All the best,
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
0
Jon
Top achievements
Rank 1
answered on 26 Aug 2010, 03:41 PM
Hi..
How do I make the slashes "/" appear as you type?
thanks
0
George
Telerik team
answered on 30 Aug 2010, 04:04 PM
Hi Jon,

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.

All the best,
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
Tags
DatePicker
Asked by
Jon
Top achievements
Rank 1
Answers by
George
Telerik team
Jon
Top achievements
Rank 1
Share this question
or