Hi,
I have this error when I set the Appointmet collection:
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
the Stack trace is:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Telerik.Windows.Controls.AppointmentsHelper.SplitToColumns(AppointmentSlotGroupInfo groupInfo, TimeSpan startTime, TimeSpan endTime, Func`2 roundAppointmentDurationToDay)
at Telerik.Windows.Controls.ScheduleViewBase.CalculateAppointmentItemRenderRectangle()
at Telerik.Windows.Controls.ScheduleViewBase.Initialize()
at Telerik.Windows.Controls.ScheduleViewBase.RegenerateGroupHeaders()
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.ScheduleViewBase.set_AppointmentsSource(IEnumerable value)
at SLToDoScheduleView.ToDoScheduleView.FillGantt(GroupByCommessaModel context, Boolean reset)
at SLToDoScheduleView.ToDoScheduleView._ctx_GetAllActivitiesByXmlCompleted(Object sender, GetAllActivitiesByXmlCompletedEventArgs e)
at SLToDoScheduleView.ActivityService.ActivityServiceClient.OnGetAllActivitiesByXmlCompleted(Object state)
Could you help me?
Thanks a lot
Gianluca
I have this error when I set the Appointmet collection:
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
the Stack trace is:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Telerik.Windows.Controls.AppointmentsHelper.SplitToColumns(AppointmentSlotGroupInfo groupInfo, TimeSpan startTime, TimeSpan endTime, Func`2 roundAppointmentDurationToDay)
at Telerik.Windows.Controls.ScheduleViewBase.CalculateAppointmentItemRenderRectangle()
at Telerik.Windows.Controls.ScheduleViewBase.Initialize()
at Telerik.Windows.Controls.ScheduleViewBase.RegenerateGroupHeaders()
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.ScheduleViewBase.set_AppointmentsSource(IEnumerable value)
at SLToDoScheduleView.ToDoScheduleView.FillGantt(GroupByCommessaModel context, Boolean reset)
at SLToDoScheduleView.ToDoScheduleView._ctx_GetAllActivitiesByXmlCompleted(Object sender, GetAllActivitiesByXmlCompletedEventArgs e)
at SLToDoScheduleView.ActivityService.ActivityServiceClient.OnGetAllActivitiesByXmlCompleted(Object state)
Could you help me?
Thanks a lot
Gianluca