Need SelectionMode="Multiple" UX as "cntrl + click" functionality

2 posts, 0 answers
  1. Kranthi
    Kranthi avatar
    15 posts
    Member since:
    May 2009

    Posted 07 Oct 2009 Link to this post

    Hello Telerik,

    I am using rad drag drop control, when the selection mode is multiple for the list box, the behaviour is something like below:

    if i want to select three items, 
    -> click on first item, second item and third item

    now when i am about to drag these items i will click on any one of the selected items and drag(a general windows user will expect this functionality to work fine). So when i click on item, the clicked item is getting deselected and as a result i am getting only two items in the payload of drag query.

    the above functionality is a bit confusing for a normal windows user.
    how can i get the drag functionality as "Control + Click" to select the items and "MouseLeftButtonDown + Drag" to drag the items (Similar as how we drag two or more folders in the file explorer of our windows(My Computer -> C:\))

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 10 Oct 2009 Link to this post

    Hello Kranthi,

    You will notice that when multiple items are selected in windows explorer and you click on one of them the selection is changed on MouseUp. The WPF list box though changes its selection on MouseDown. Generally you can cancel the mouse event and prevent this, but then you do not know if the user is going to drag the items or not. You may need to inherit the ListBox control and its items to change how they handle selection to achieve this effect.

    Currnetly the RadTreeView supports the kind of DragDrop out of the box. Do you think that you will be able to use it?

    If you do not use a HierarchicalDataTemplate the TreeView will behave very much like a ListBox. There are some minor differences in the API and look between the two controls but we will be happy to help you get around them if you decide to go this way.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top