This is a migrated thread and some comments may be shown as answers.

DragAndDrop event error

4 Answers 113 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Greg Kerr
Top achievements
Rank 1
Greg Kerr asked on 03 Dec 2010, 05:18 PM
I'm having a problem with drag-and-drop in the ScheduleView. Essentially, I'm trying to disable ALL drag-and-drop on the ScheduleView and have set every property and attached property I can think of, but I'm still getting the following error if I click an appointment in the view and move the mouse around just a pixel or two. I CAN double-click an appointment and bring up a custom dialog box and that's all working fine. But obviously accidentally initiating a drag-and-drop operation results in the following error:

"Object reference not set to an instance of an object"

The stack trace is:

Telerik.Windows.Controls.AppointmentItem.OnAppointmentItemsDragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.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.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragQuery()
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.TryStartDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.Input.MouseEventArgs.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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numAr

Any ideas?

Thanks,
Greg

4 Answers, 1 is accepted

Sort by
0
Srikanth
Top achievements
Rank 1
answered on 07 Dec 2010, 11:00 PM
We are having the same issue.
0
Rosi
Telerik team
answered on 09 Dec 2010, 09:54 AM
Hi Srikanth,

Is it possible to give us more details(steps to reproduce or a sample running project illustrating the  issue). This will help us to investigate the issue and provide you with a solution.

Is your application hosted in windows forms host? If this is the case - I suggest you use our latest internal build and let us known whether this helps.

Also,could you try whether you are able to reproduce the problem with our online examples?

All the best,
Rosi
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Rod Yager
Top achievements
Rank 1
answered on 27 Dec 2010, 05:30 PM
I am having the same problem. I just posted the problem today (Stack trace included) and then noticed other people where having the same issue.
This is kind of a showstopper since I have not found a way to work around it. Please provide a fix or work around.

Thanks,
Rod
0
Rosi
Telerik team
answered on 03 Jan 2011, 08:59 AM
Hello ,

We are soory that you experience problem with RadScheduleView. However we are not able to reproduce the problem at our side. That is why we need more information in order to isolate the problem. Is the scheduleview in your application hosted in windows forms application? Could you prepare a sample project  or/and  send us a short movie illustrating the error?

Also, I suggest you try our latest internal build and let us known whether this helps.

All the best,
Rosi
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
ScheduleView
Asked by
Greg Kerr
Top achievements
Rank 1
Answers by
Srikanth
Top achievements
Rank 1
Rosi
Telerik team
Rod Yager
Top achievements
Rank 1
Share this question
or