Using Drag & Drop failing with AppointmentMapping

I've got this exception when I'm drag & dropping into the SfSchedule.

I'm using Syncfusion.SfSchedule.WPF46 in version 15.4.0.20
The solution is targetting the .NET Framework 4.6.1
The libraries are installed from nuget (repository: http://nuget.syncfusion.com/wpf)

Attached an example of failing code.

Here's the exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.UI.Xaml.Schedule.ScheduleDaysView.ReleaseDragDrop(SfSchedule sfSchedule, MouseButtonEventArgs e)
   at Syncfusion.UI.Xaml.Schedule.SfSchedule.DragDropCanvas_MouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Attachment: DragDrop__Failing_b3c1e73a.zip

1 Reply

SG Swathi Gopal Syncfusion Team January 11, 2018 06:34 AM UTC

Hi Lorem, 
 
We have checked with the mentioned issue and we are able to reproduce the issue with NullReferenceException occurs when drag and drop is done on custom appointment in schedule. When we analysed this issue, we found that it occurs due to AllDayMapping and logged issue report for the same. This issue fix will be included in our upcoming Volume 1 main release, which is expected to be available in the mid of month February 2018. As of now, we have modified the provided sample to fix the mentioned issue, by setting AllDayMapping to the Schedule and all day property as false in the sample. Kindly find the sample below, 
 
 
Regards, 
Swathi G 


Loader.
Up arrow icon