Hi,
when I set working hours in my UltraDayView i can modify only WorkDayStartTime and WorkDayEndTime properties.
For my application, I really need to manage a break in the working day, so i have to set 2 different time span in the same day (for example from 8:00 to 12:00 and from 13:00 to 17:00) . Is there a way to do that?
Any suggestion really appreciated!!
Thanks!!
Stefano
Hi,I found the solution by myself, I set the dayView.ActiveOwner with default CalendarInfo owner and then I set my working hours in DayOfWeekSettings of the Actvie Owner.Here is a short example://Set the ActiveOwnerthis.dayView.ActiveOwner = this.dayView.CalendarInfo.Owners[0];this.dayView.ActiveOwner.Name = "Onwer name";//set multiple working hours on Mondaythis.dayView.ActiveOwner.DayOfWeekSettings[DayOfWeekEnum.Monday].WorkingHours.Clear();this.dayView.ActiveOwner.DayOfWeekSettings[DayOfWeekEnum.Monday].WorkingHours.Add(new TimeSpan(8, 0, 0), new TimeSpan(12, 0, 0));this.dayView.ActiveOwner.DayOfWeekSettings[DayOfWeekEnum.Monday].WorkingHours.Add(new TimeSpan(14, 0, 0), new TimeSpan(18, 0, 0));//This row is very important to tell DayView to use ActiveOwner settingsthis.dayView.GroupingStyle = DayViewGroupingStyle.DateWithinOwner;Hope it helps!!Stefano
excellent! Thanks for posting it. I was just looking around for such a solution.