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

ListView Drag & Drop causes Application Crash

1 Answer 102 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Barbara
Top achievements
Rank 1
Barbara asked on 29 Apr 2013, 10:12 AM
Hello,

we have a problem with the Telerik ListView Drag & Drop function.

There are two ListViews that are enabled for drag and drop. If we drag an item from the first to the second list, the application crashes.
Also, I created a new, empty solution and only added two list views (drag & drop is allowed by properties). There, we have the same problem.

- Object reference error
   bei Telerik.WinControls.UI.ListViewDragDropService.UpdateDragHintLocation(Point mousePosition)
   bei Telerik.WinControls.UI.ListViewDragDropService.HandleMouseMove(Point mousePos)
   bei Telerik.WinControls.RadDragDropService.Telerik.WinControls.IMessageListener.PreviewMessage(Message& msg)
   bei Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message& msg)
   bei Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)

Thanks for your help!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 May 2013, 05:38 AM
Hi Barbara,

I am publishing the answer you got in your support ticket, so that the community can benefit from it:

RadListView does not support drag and drop between two RadListView controls out of the box. However, you can refer to our Demo Application (DropDown & List -> List Control -> Drag&Drop example) for a demo on how to move items from one RadListControl to another. This example is for RadListControl but there is RadItemDragDropManager class that can be used with RadListView as well. This class provides drag & drop between two controls that have item collections. So, my advice is to try the approach from this demo.

All the best,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
ListView
Asked by
Barbara
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or