Hi,
I have a "custom appointment" class which implements IAppointment and an ObservableCollection of that type which the RadScheduleView is bound to. I can't inherit from Appointment/AppointmentBase because of our business logic, so I implemented the IAppointment interface and the Copy and CopyFrom methods. We use Silverlight 4 with the latest RadControls (released and bugfixed version tested).
While loading the RadScheduleView I have the following error:
Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message:
System.ArgumentNullException: Der Wert darf nicht NULL sein. Parametername: source bei System.Linq.Enumerable.OfType[TResult](IEnumerable source)
bei Telerik.Windows.Controls.ScheduleView.AppointmentExtensions.GetResources(IOccurrence occurrence)
bei Telerik.Windows.Controls.AppointmentsHelper.InitializeAppointmentSlotInformation(IEnumerable source, Boolean roundAppointmentDurationToDay,
DateTime effectiveRangeStart, DateTime effectiveRangeEnd, GroupItemInfo groupItemInfo, Boolean simpleRendering, TimeSpan startTime, TimeSpan endTime, IList`1 groupedResources)
bei Telerik.Windows.Controls.GroupHeader.InitializeColumnsAndUpdateMaxIntersectedAppointmentsCount() bei Telerik.Windows.Controls.GroupHeader.Initialize()
bei Telerik.Windows.Controls.AppointmentsPanel.UpdateHeaderAvailableSize(List`1 headers, Double availableLength, Boolean isHorizontal, Boolean initialize, Boolean redistributeAvailableSpace)
bei Telerik.Windows.Controls.AppointmentsPanel.MeasureOverride(Size availableSize)
bei System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Any ideas?
Thanks in advance
Thomas
Edit: Problem solved. The Resources Property which needs to be implemented has to have a value different from null. In RadScheduler this wasn't the case I think.
I have a "custom appointment" class which implements IAppointment and an ObservableCollection of that type which the RadScheduleView is bound to. I can't inherit from Appointment/AppointmentBase because of our business logic, so I implemented the IAppointment interface and the Copy and CopyFrom methods. We use Silverlight 4 with the latest RadControls (released and bugfixed version tested).
While loading the RadScheduleView I have the following error:
Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message:
System.ArgumentNullException: Der Wert darf nicht NULL sein. Parametername: source bei System.Linq.Enumerable.OfType[TResult](IEnumerable source)
bei Telerik.Windows.Controls.ScheduleView.AppointmentExtensions.GetResources(IOccurrence occurrence)
bei Telerik.Windows.Controls.AppointmentsHelper.InitializeAppointmentSlotInformation(IEnumerable source, Boolean roundAppointmentDurationToDay,
DateTime effectiveRangeStart, DateTime effectiveRangeEnd, GroupItemInfo groupItemInfo, Boolean simpleRendering, TimeSpan startTime, TimeSpan endTime, IList`1 groupedResources)
bei Telerik.Windows.Controls.GroupHeader.InitializeColumnsAndUpdateMaxIntersectedAppointmentsCount() bei Telerik.Windows.Controls.GroupHeader.Initialize()
bei Telerik.Windows.Controls.AppointmentsPanel.UpdateHeaderAvailableSize(List`1 headers, Double availableLength, Boolean isHorizontal, Boolean initialize, Boolean redistributeAvailableSpace)
bei Telerik.Windows.Controls.AppointmentsPanel.MeasureOverride(Size availableSize)
bei System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Any ideas?
Thanks in advance
Thomas
Edit: Problem solved. The Resources Property which needs to be implemented has to have a value different from null. In RadScheduler this wasn't the case I think.