Hello all,
I'm working with an UltraDayView control in which I'm displaying Friday through Thursday (based on our work weeks). I'd like to give the user the ability to hide the weekend days (Saturday & Sunday) through a user setting, but I'm not sure how to actually hide these columns/days on the UltraDayView.
Can anyone give an example of how to do this?
Thanks!
Hello,
Could you please try the following code and see if it meets your requirements:
Infragistics.Win.UltraWinSchedule.DayOfWeek dayOfWeek1 = new Infragistics.Win.UltraWinSchedule.DayOfWeek(System.DayOfWeek.Sunday); Infragistics.Win.UltraWinSchedule.DayOfWeek dayOfWeek2 = new Infragistics.Win.UltraWinSchedule.DayOfWeek(System.DayOfWeek.Saturday); dayOfWeek1.Enabled = false; dayOfWeek2.Enabled = false; this.ultraCalendarInfo1.DaysOfWeek.Add(dayOfWeek1); this.ultraCalendarInfo1.DaysOfWeek.Add(dayOfWeek2);
Please feel free to let me know if I misunderstood you or if you have any other questions.
works well.
I would like to hide the weekend (Saturday and Sunday) in a timelineview. But your solution don't work there.
Is there any way to hide the weekend in a timelineview at all?