質問

If you set the MinDate on an UltraDateTimeEditor to a date that is today or in the past and then type in a date that is before the MinDate, the control clears the date (desired outcome). If you set a MinDate that is in the future and type in a date that is before the MinDate value, the control acts oddly.

Example

MinDate = 1/29/2014

Type in = 1/1/2014

Tab out of the control

Date control shows 1/1/2020

After some trial and error, it appears that the control is taking the first two spaces in the year (2014) and treating it like a 2-digit version of the year (20).

If you type in 1/1/1500, you get 1/1/2015. If you type in 1/1/1900 you get 1/1/2019.

Is this a known issue (I couldn't find anything on it)? Is there a workaround that allows both the limiting of the dates on the dropdown, but also won't result in the odd behavior when a user tries to type a date in?

役に立ちましたか?

解決

I made a quick test using version 12.1 with the latest available service release - 12.1.20121.2135 and I could confirm that the issue is fixed. Please try to upgrade to latest available service release of version 12.1 or to one of latest versions (for example 13.1 or 13.2) where the issue is fixed.

Let me know if you have any questions

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top