I have a list of schedules that have a start date and a corresponding UltraCalendarCombo. When the user selects a schedule from the list, this UltraCalendarCombo should be set to the schedule's start date. Here the user can edit the start date and chose to save it. The user should not be able to select a date earlier than today, so the MinDate is set to Date.Now. Now, I don't want to prevent the start date from being less than Date.Now. I just want to prevent the user from selecting a start date less than Date.Now. Currently when I programmatically set the UltraCalendarCombo to a date less than Date.Now, it automatically sets itself to the MinDate. How would I prevent the user from selecting a date less than Date.Now, while also allowing the same UltraCalendarCombo to contain a date less than Date.Now?
Hello Bryan,
I cannot think of a faster workaround then to just check the value. I do not think that this would cause any issues or performance problems. I now see what is your problem and this seems like a fair approach to take.
Please do not hesitate to ask if something comes up.
I don't want to allow the user to select past dates, but the user can select an object that contains past dates. If the date has already been set, then I will programmatically disable the UltraCalendarCombo to prevent them from changing it.
Basically I'm wanting a way to restrict the user's input, without restricting the program's input into the UltraCalendarCombo. One possible work around that I've come up with is check the object's date, if it is less than the UltraCalendarCombo's mindate, then reset the mindate to date.min before populating the control. Is there a better alternative to this?
Why would you want to do that? This does not seem reasonable. This property is doing exactly what it should be. This sounds to me like you are trying to restrict the control's value and in the same time to set its value to something outside of the allowed zone. What is this scenario that requires that kind of functionality?
Please feel free to let me know if a question about our toolset comes up on your mind.