Hi,
I have two calendar controls that specify an input start date and input end date on a form. Dates outside this ranges are disabled using a UltraCalendarInfo control.
I also have a Wingrid on the form and I want to constrain the input of dates in the grid to values between the input start date and input end date of the calendars. Specifically I would like the the dropdown calendar in each cell to allow dates within the range specified by the start date and end date. All other dates should be disabled.
I'd be grateful for any ideas on how to implement this.
Regards
James
Hi Mike
Thanks for your quick reply. I think you are right that the delay is caused by JITing the assembly and I'll follow your suggestion with Ngen.
Cheers
Hi James,
I tried this out and I notice a small delay the first time I drop down the calendar, but every time after that, it's instantaneous.
My guess is that this is caused by the JITting of the assembly. You are probably not using the UltraWinSchedule controls elsewhere in your application, so the first time they are referenced, the DotNet framework has to load them up.
If that is what's happening, then the only way around it would be to use NGen and pre-JIT the assembly.
Hi Dan
Many thanks for the answer. It works great.
I've replaced the dropdown default calendars on the grid with a WinCalendarCombo to have the same look and feel throughout my application. There a noticeable delay when you click the dropdown in the cell while the calendar loads. Is there a way to speed this up?
Hello James,
Please do not hesitate to contact us if you have any other questions.
Set the MinValue and MaxValue properties on that column to the start/end dates of the calendars.