ListView Drag & Drop causes Application Crash

2 posts, 0 answers
  1. Barbara
    Barbara avatar
    2 posts
    Member since:
    Apr 2012

    Posted 29 Apr 2013 Link to this post

    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!
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 May 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top