I'm trying to drag from an external list box to the schedule view control, but i'm getting a "Object reference not set to an instance of an object." Exception in the DragDropBehavior.Drop.
at Telerik.Windows.Controls.ScheduleViewBase.CreateNew(IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Editing.cs:line 96
at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.CopyAppointment(DragDropState state, Slot targetSlot, IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 447
at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.Drop(DragDropState state) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 110
at MAXIS.Scheduling.ScheduleItem.ScheduleViewDragDropBehavior.Drop(DragDropState state) in C:\Projects\_AX\Production\Scheduling\MAXIS.Sch
It's a custom Appointment. I've implemented the copy & the copyfrom methods like is shown in the examples. I can drag & drop from within the control just fine, but dragging a appointment from a listbox throws the exception. the only difference i see in the state object is that the SourceAppointmentsSource is nothing.
The control version is 2012.1.215.40
at Telerik.Windows.Controls.ScheduleViewBase.CreateNew(IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Editing.cs:line 96
at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.CopyAppointment(DragDropState state, Slot targetSlot, IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 447
at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.Drop(DragDropState state) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 110
at MAXIS.Scheduling.ScheduleItem.ScheduleViewDragDropBehavior.Drop(DragDropState state) in C:\Projects\_AX\Production\Scheduling\MAXIS.Sch
It's a custom Appointment. I've implemented the copy & the copyfrom methods like is shown in the examples. I can drag & drop from within the control just fine, but dragging a appointment from a listbox throws the exception. the only difference i see in the state object is that the SourceAppointmentsSource is nothing.
The control version is 2012.1.215.40