Hi all!
1.) If a user cklick on a date we need to select the complete week (we are loading a grid with data for a week and the user could be a litte confused)
2.) When the frm is loading, the current month is displayed. How can we achieve to Display e.g. March 2014?
Best rgds
Hello,
1. A particular week can be selected upon clicking a single date by handling the schedule's AfterSelectedDataRange event, interpret the current selection (given day clicked) and it's week., set a new selected data range from that week: void CalendarInfo_AfterSelectedDateRangeChange(object sender, EventArgs e) { if (ultraMonthViewMulti1.CalendarInfo.SelectedDateRanges.SelectedDaysCount == 1) { DateTime startday = ultraMonthViewMulti1.CalendarInfo.SelectedDateRanges[0].FirstDay.Week.FirstDate; DateTime endDay = ultraMonthViewMulti1.CalendarInfo.SelectedDateRanges[0].FirstDay.Week.LastDate;
this.ultraMonthViewMulti1.CalendarInfo.SelectedDateRanges.Add(startday, endDay); } }
2. The FirstMonth property can be set to change the month displayed.
Infragistics.Win.UltraWinSchedule.Month month; month = this.ultraMonthViewMulti1.CalendarInfo.GetMonth(03, 2014); ultraMonthViewMulti1.FirstMonth = month;
3. Create an appearance and set it for the DaysOfYearLook[datetime].Appearance property of the control.
Infragistics.Win.Appearance AP; AP = this.ultraMonthViewMulti1.CalendarInfo.Appearances.Add("Custom Color"); AP.BackColor = Color.Red;
this.ultraMonthViewMulti1.CalendarLook.DaysOfYearLook[(int)YearMonthEnum.March, 30].Appearance = this.ultraMonthViewMulti1.CalendarInfo.Appearances["Custom Color"];
P.S.:
3.) is there a way to set the backcolor of defined day's (e.g. 15/03/2015) to another Color?
Background:We have a table with BeginnTime and EndTime, so I want to mark These days, where one of the times are missing. These rows are alreday markes with a Boolean IsError.
So my guess is to set the Background depending on this ISError flag.