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
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.
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"];
Infragistics Support =
Awesome! I'm glad I was of some help to you. Have a nice day.
I got it worked!
If you set ultraMonthViewMulti1.UseAppStyling to FALSE then to above code for the brakground color works.
If it is set to TRUE, then the Background remain in the main Color.
Thanks a lot!