I was using a WebDaView to show a 5 days working week view. When I select a date from left hand side WebCalendarViewI found that the first day 5 days view was not that week's Monday.My question is how toimplement?
Hi Farrio,
If you want to modify active day (like ensure Monday), then you may process FrameIntervalChanging event of WebScheduleInfo and adjust it. Below is example:
protected void WebScheduleInfo1_FrameIntervalChanging(object sender, Infragistics.WebUI.WebSchedule.FrameIntervalChangingEventArgs e){ Infragistics.WebUI.Shared.SmartDate active = ((Infragistics.WebUI.WebSchedule.WebScheduleInfo)sender).ActiveDayUtc; int dowShift = (int)DayOfWeek.Monday - (int)active.DayOfWeek; if(dowShift != 0) { Infragistics.WebUI.Shared.SmartDate monday = active.AddDays(dowShift); e.FrameInterval.EndDateUTC = e.FrameInterval.StartDateUTC = monday; ((Infragistics.WebUI.WebSchedule.WebScheduleInfo)sender).ActiveDayUtc = monday; }}
Did you get any solution to this problem? I am facing same problem.
I have done an alternate workaround to it, where I am using a different webscheduleinfo and setting the activeDayUtc of it to monday of the activedayUtc of first webschedule.