Hello,
I use a WebDayView to make my web calendar look like the Outlook Workweek calendar. I set VisibleDays property to 5.
But when I change the ActiveDay of the WebScheduleInfo control, the first day in the workweek view changes to the active day.
Is it possible that the first column in the workweek view is always monday (just as it is in Outlook) ??
Best regards.
this.WebScheduleInfo1.ActiveDayUtc = new SmartDate(System.DateTime.Now.Subtract(new TimeSpan(Convert.ToInt32(System.DateTime.Now.DayOfWeek), 0, 0, 0)));
I'm still learning, but ActiveDay seems to be different from the Current Day. I use the above code and the dayview always starts with sunday, but the current day is still shown in a different color.. Is this what you're looking for?
The WebDayView will currently always start from the active day. The WebWeekView will always start from the first day in the workweek. Sounds like you need a combination of the two, which right now isn't available. Not sure there's a workaround at this point, since no matter what you do, the webdayview will attempt to show the active day at the top. This does sound like a good feature request, and I would encourage you and any others who wish to have this feature submit a feature request through https://www.infragistics.com/community/ideas
-Tony
Hello, How can I change the ActiveDay on a WebScheduleInfo in runtime (I mean in the code)?
Cheers, Geykel
Geykel, you can use the same code as above. You want to set the WebScheduleInfo.ActiveDayUtc
Hey Tony, Thanks,
I tried it on a test website and works OK, but I think I found out what is happening on my real website, I have a Master Page with one Content Template and inside it I have the WebMonthView and WebSheduleInfo, in design time, the WebMonthView doesn't list my WebScheduleInfo on the WebScheduleInfoId list, so, I set it on the property windows directly (writting the name of the WebScheduleInfo), but in this way the WebMonthView doesn't change in response to any change I made to the ActiveDayUtc in runtime, like the code you reference above, so I think there is some issue with Master Pages and Content Templates...
Thanks for your help...Geykel