Drag and Drop using an icon

5 posts, 0 answers
  1. Pablo Tola
    Pablo Tola avatar
    43 posts
    Member since:
    Nov 2007

    Posted 17 Aug 2010 Link to this post

    Hi,

    I think this is easy but cannot find anywhere how to implement it.
    I have two list boxes, one is the source and the othe one is the target, I want to drag items from the source to the target and also be able to reorder the items at the target.
    The target lisbox items have form fields and other controls in them that when clicked I dont want the drag operation to happen but be able to input text, click a button, etc.

    This is a form builder application I have the diffenrent form elements on the left side and when you drag the element to the right side list the template is the actual form element that you can modify it parts like label, validation, required, etc. That;s why I don't want all the elements to trigger the drag but maybe create a title bar per element where I can click and drag the item to reorder on the list.

    Thanks for your help.
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 17 Aug 2010 Link to this post

    Hi Pablo Tola,

    Have you checked out this drag and drop demo?


    All the best,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pablo Tola
    Pablo Tola avatar
    43 posts
    Member since:
    Nov 2007

    Posted 17 Aug 2010 Link to this post

    Yes, no matter were I click, the item is dragged, I want to be able to drag the item just when I click a specific Icon or a specific control or object.
  5. Pablo Tola
    Pablo Tola avatar
    43 posts
    Member since:
    Nov 2007

    Posted 17 Aug 2010 Link to this post

    I don't think you've read the entire post. I've been to all your samples and none of them help, plus I think your D&D is extreemly complicated, but I try to remain faithfull to your controls and try to get what I needs done with them before trying another option.

    I have already working your sample were you implement drag and drop between two lists with reordering.
    What I weant to acomplish is to be able to drag the items on the second list just by clicking on a specific part of the object, not the entire listItem, like clicking on a "Click here to drag" icon or something.
    I have other controls in the item that I want to prevent dragging when clicked on.

    thank you.
  6. Pablo Tola
    Pablo Tola avatar
    43 posts
    Member since:
    Nov 2007

    Posted 17 Aug 2010 Link to this post

    If you look at your ASP.NET control suite, there's a dock control that let's you choose from three options to drag: "grip", "none" and "titlebar", I woul like to do something like that with the wpf drag and drop, be able to define a tittlebar on my listitem template using a border or any other control and able to drag the entire listobject by clicking and draging only on the titlebar, If I click on anywhere else the listitem will not be dragged.

    roight now if I put a textbox in my listitem template and I drag to select the text inside it will drag the listitem, I don't want that.

    thank you. 
Back to Top
UI for WPF is Visual Studio 2017 Ready