Hello,
I have found a way to change the timeslot color for a certain time period on the dayview using the code below however when I switch to the week view the red color doesn't show up. How would I change the timeslot color in the ultraweekview since there is no timeslot property link in ultradayview
For Each slot As TimeSlot In actDayView.TimeSlots
If slot.StartTime.Hour > 10 AndAlso slot.EndTime.Hour < 13 Then
slot.WorkingHourAppearance.BackColor =Color.Red
End If
Next
Hello Matt,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
You might need to set the 'GroupingStyle' enumeration on the 'UltraDayView' to the 'OwnerWithinDate' member for example, in order to get this to work.
I have attached a small example project which shows what the above article is all about. Please take a look at it and let me know if you need any additional assistance.
That seems like exactly what I need, but for some reason i cannot get it to work, if possible could you attach an example project showing how it works?
Matt
Hello Matthew,
I believe that this could be achieved through the 'TimeRangeAppearances'.Please take a look at the following link and let me know if you need any additional assistance: http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v13.1~Infragistics.Win.UltraWinSchedule.OwnerTimeSlotSettings~TimeRangeAppearances.html.
Ok sorry to keep bugging you but this is the last hurdle I am facing. I am using the UltraDayView and the visibledays property to create a work week look showing 5 business days as shown by the image below. When I use the code below it colors the same time slots red on each day, how would I just change the timeslot color for a specific day, I am just not sure how to do this.
For each slot as TimeSlot in actdayView.Timeslots
if slot.StartTime.Hour > 10 AndAlso slot.Endtime.Hour < 13 then
slot.WorkingHourAppearance.BackColor = Color.Red