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

How to change RadDatePicker input ?

3 Answers 54 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Devid
Top achievements
Rank 1
Devid asked on 13 Jan 2017, 03:11 PM

Is it possible to change the way the RadDatePicker behaves when I write numbers ? 

For example I want to write 0101 and Press Enter, the Date should be 01.01.2017 (if the year is not given the current year should be taken). Instead I get 03.01.0101.  Is it possible to reprogram this behavior ?

3 Answers, 1 is accepted

Sort by
0
Devid
Top achievements
Rank 1
answered on 14 Jan 2017, 08:24 PM
I see that I can set the AllowParsingWithoutSeparator="True". But still if I write just the year, like 2017 I get a Error or if I write 010110 I get an Error, it is not recognized as 01.01.2010. So I have to overwrite the event ParseDateTimeValue. But the problem now is that I loose all the functionality and I have to write it myself, isn't there a way to keep the default functionality but add the functionality just to write the year ?
0
Devid
Top achievements
Rank 1
answered on 15 Jan 2017, 06:52 PM

Now I have the functionality that I want. The last thing I need is the auto correction or validation.

If the user inputs something like 30.02 a error should be shown or automatic correction to 28.02. Is this possible ?

 

0
Devid
Top achievements
Rank 1
answered on 17 Jan 2017, 08:31 AM

Ok I figured it out all by myself. Thanks for nothing.

 

 

ps. This forum sis really slow, so slow that it is bad. 

Tags
DatePicker
Asked by
Devid
Top achievements
Rank 1
Answers by
Devid
Top achievements
Rank 1
Share this question
or