Multiple Selection on Control

3 posts, 0 answers
  1. ankit
    ankit avatar
    29 posts
    Member since:
    Sep 2008

    Posted 15 Mar 2009 Link to this post

    • Is It possible to have multiple selection on Dragable List box ? If yes how ?
    • Also, How can this possible for custom control like If I have 2 images in grid and i want to move both together at a same time

    I would say this might be admin question.
    Thanks in advance.
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 19 Mar 2009 Link to this post

    Hello Ankit,

    Sorry for the delayed reply,

    The example with the Draggable ListBox just shows how you can augment a control with drag-drop. Basically when the drag starts, you choose what elements will be dragged, so it will also work with multiple selected elements.

    Unfortunately the default ListBox, used in the example does not support multiple selection and there is no easy way to add this.

    The drag/drop though can be added to almost any control (excluding these which capture the mouse, like buttons), so it will be possible to drag elements form any control that supports multiple selection.

    For your second question: When the drag starts, you can add anything in the DragCue, including the whole grid with the two images.

    If you do not like to modify the visual tree and you are looking to move elements around like on a design canvas, you can make the draggable elements drag sources (AllowDrag=True) and the design canvas (a parent canvas panel) the drag destination. Then on every drop query you will set the Canvas.Left and Canvas.Top for the dragged object.

    Best wishes,
    Miroslav
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Matthew
    Matthew avatar
    8 posts
    Member since:
    Oct 2010

    Posted 13 Apr 2011 Link to this post

    Is it possible to use a Canvas object as the DragCue?  I have seen examples where Rectangles and images are used.  However, I would like to use a Canvas.  An example would be great.

    Thanks,
    Matt
Back to Top