Multiple-select with RadDragAndDrop for WPF

Thread is closed for posting
1 posts, 0 answers
  1. 6AD7253D-8511-4AC5-B58E-EDFCBB9EE6C2
    6AD7253D-8511-4AC5-B58E-EDFCBB9EE6C2 avatar
    26 posts
    Member since:
    Sep 2008

    Posted 21 Jul 2009 Link to this post

    Requirements

    RadControls version

    RadControls for WPF Q2 2009    

    .NET version

    3.5

    Visual Studio version

    VS 2008

    programming language

    C#

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    This project extends the examples provided in the WPF demo application to provide support for multiple selection when using the RadDragAndDropManager.  Both regular single-selection and multiple-selection have been provided in the project for comparison sakes.

    The example is set to run, just keep in mind that multiple-select and single-select listboxes cannot drag back and forth (their payload is a different object type so it breaks), however, the multiple select ListBox can be used for single selection.  The two ListBox's on the left are for single-select and the two on the right are for multiple selection. 

    In order to use the multi-select Listbox in your application, you would need the DraggableMultiListBox.cs file as well as ItemInfo.cs (for the custom item used here).  You would additionally need to copy the two DataTemplates from the App.Xaml file (for the custom drag templates).  Once these are set you can follow the example in the Window.xaml file for setting ObservableCollections as the ItemsSource for each DraggableMultiListBox. 
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.