Hi,
We have one customer using our software in New Zealand that gets this error message sporadically when displaying the UltraMonthViewMulti
Exception Message: Week #53 does not exist in year 2011 based on the current week rule [FirstDay] and starting day of week [Sunday].Parameter name: week
There does not seem to be any consistency behind it. It will throw the exception, an then be fine next time they open the calendar to the same day/view. Any ideas what is going on?
Larry
I had the same problem
In my case the problem was resolved.
We are using Infragistics 11.1 Service Release NetAdvantage_WinForms_20111.2009_SR.msp
This is the piece of code that gave me problems:
System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
I just comment that line:
//System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
And assign the property to the control:
this.ultraCalendarInfo1.FirstDayOfWeek = Infragistics.Win.UltraWinSchedule.FirstDayOfWeek.Monday;
And thats it, problem solved.
I just found a workaround for the combo box. During the form load even just add the following:
[your control name].CalendarInfo.FirstDayOfWeek = Infragistics.Win.UltraWinSchedule.FirstDayOfWeek.Sunday
It is only affecting the December 2012 month.
Thanks,
Kevin
I'm using version 10.3 and am experience the exact same issue with the UltraCalendarCombo.
Hello Angel,
Could you please tell me what is your current version and do you have any installed service release and which one. Are you able to upload small sample that reproduce your issue.
Let me know if you have any questions.
Regards