It looks like I can set the MinDate and MaxDate of UltraDateTimeEditor. It will validate the value being assigned to it programmatically using the range; however, the editor and the dropdown are still acting using the default behavior.
I set the MinDate to 1/1/1950 and MaxDate to 12/31/2049. The control still only lets me type 12/31/29 and the dropdown only goes up to 12/31/2029. Is this expected?
Version 11.2.
EDIT: Somehow the MaskInput of mm/dd/yy is affecting the behavior. Without the MaskInput, the control behaves as expected.
Hello,
Why do not you want to be able to type 12/31/29, since this is between the minimum and maximum dates? Also, the dropdown goes beyound 2029 for me.
The issue might be coming from the version you are using. Could you please try to test your project against the latest service release available for version 11.2 or the trial of NetAdvantage 12.2 for Windows Forms?
I will be waiting for your feedback.
Sorry, I wasn't clear about the 2029. I mean if you set the MaxDate to 12/31/2049, it is still only allowing you to type up to 2029 when the year input mask is only 2 digits. The control seems to work as expected when there is no input mask.
Hi,
Are you fine with the four digit for year in the input mask? Is there anything else I can do for you?
Is there a way to get to the calendar control of UltraDateTimeEditor? If not, is there an alternative control so we can display 2-digit year and be able to use century 1950 to 2049.
EDIT: We are thinking of just using the TwoDigitYearMax property of the Calender of the current Thread static class to override the OS century setting in our application. This seems to let the text editor and calendar dropdown to go beyond 2029 even when the year mask is only 2 digits.
Hello jquerijero,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I'm fine at the moment. We are testing out the Calendar.TwoDigitMaxYear property of the main application thread.
Thank you for the feedback. Please do not hesitate to ask if something comes up.