For some reason when i go into to weekview page it automaticaly highlights every time on everyday. I am not sure whats causeing this but how would i turn it off?
Awesome this worked for me thanks for the help.
what I ended up doing was
TimeEntryWeeklyScheduler.VisibleDates.Clear();
TimeEntryWeeklyScheduler.VisibleDates.Add(ViewModel.CurrentWeeklyViewStart);
and it worked great thanks again
The VisibleDates collection determines which dates are displayed so when the WeekMode is Week (or WorkWeek), you just need to clear the VisibleDates and add in 1 date from the week you want to display. The control will calculate the VisibleDates for the week containing that date and update the VisibleDates to be the dates for that week.
ok so I think your right it is a SelectedTimeRange issue. I guess I didn't relize what it was. So i am using it for changing the week start date and end date. the xamdayview is set to weekdisplaymode = week. But how do i change the week start and end time without the selecting the code i was using is like such.
var
daterange = new Infragistics.DateRange();
daterange.Start = ViewModel.CurrentWeeklyViewStart;
daterange.End = ViewModel.CurrentWeeklyViewEnd;
TimeEntryWeeklyScheduler.SelectedTimeRange = daterange;
I need the time to change using the viewmodels properties, they are bound to a datpicker that changes.
thanks for your help.
I have never seen the behavior you describe. I can see that happening if you were to set the SelectedTimeRange to a DateRange that represents the week but can't think of a scenario where the control would have done that automatically. So just to be clear, to put the control into week mode you are just setting the WeekDisplayMode to Week and not setting the SelectedTimeRange? You could try hooking the SelectedTimeRangeChanged event and see what the callstack is when the SelectedTimeRange is being change to such a large value.
so no one has any idea of to deselect the times when it first loads?