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
605
Problem with Control Calendarinfo
posted

I found a problem regarding the Control Calendarinfo in the latest Infragistics Version for Windows Forms (2013.1)

For example, if I select the date 31.12.2012, I receive the year 2012 and the calendar week 53 as a response.

Until the Version 2010.3 it was possible to get the year 2013 and calendar week 1 as a result, which is a correct behaviour.

Is there any new configuration about this phenomenon or is this a bug?

Parents
No Data
Reply
  • 29105
    Offline posted

    Hello kasar,

    This issue was fixed by changing the CalendarWeekRule to FirstFullWeek in the form load event like so:

    this.ultraMonthViewMulti1.CalendarInfo.WeekRule = CalendarWeekRule.FirstFullWeek;

    There was a fix to call off to CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(date, System.Globalization.CalendarWeekRule, firstDayOfWeek) instead of calculating these parts our self.  As a result this is working as intended and is not a bug as we are delegating off to .NET framework to return the week numbers. 
    It is important to note that the UltraCalendarInfo.WeekRule property defaults to FirstDay.

Children