Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
UltraDateTimeEditor - Easy way to disallow user selecting FEB/31/YYYY ?
posted

I just noticed that the stock behavior of the UltraDateTimeEditor is to allow all month/day combinations to UpArrow to day31.

Is there a property that can be set so that the control will be more intelligent?  I don't want my users being able to spin to Feb 31st.  We are allowing them to spin the year, month and day with the keyboard arrows as per the default settings of the control.

If there is a property that controls this, will it work correctly when SpinWrap is assigned to True?

I've looked through the list and just can't find what I need.  I'm also very surprised that this is the default behavior.

Thanks.

 

Parents
No Data
Reply
  • 69832
    Offline posted

    The spin button logic validates input on a per section basis; since the largest possible value for any day is 31, it allows up to that value, but does not evaluate the state of adjacent sections when it does this. The reason for this is that to change the value in one section based on the value of another can cause behavior that is disorienting to the user.

Children