This is a migrated thread and some comments may be shown as answers.

Drag and Drop using an icon

4 Answers 92 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Pablo Tola
Top achievements
Rank 2
Pablo Tola asked on 17 Aug 2010, 01:51 PM
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.

4 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 Aug 2010, 02:53 PM
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
0
Pablo Tola
Top achievements
Rank 2
answered on 17 Aug 2010, 03:25 PM
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.
0
Pablo Tola
Top achievements
Rank 2
answered on 17 Aug 2010, 04:01 PM
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.
0
Pablo Tola
Top achievements
Rank 2
answered on 17 Aug 2010, 04:01 PM
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. 
Tags
DragAndDrop
Asked by
Pablo Tola
Top achievements
Rank 2
Answers by
Milan
Telerik team
Pablo Tola
Top achievements
Rank 2
Share this question
or