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

Drag Drop in Desired Location

1 Answer 53 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Manas Rastogi
Top achievements
Rank 1
Manas Rastogi asked on 31 Aug 2009, 10:00 AM
Hi,
I want to drag and drop controls in desired location within a grid/canvas but these controls get dropped sequentially one below the other.Is it possible if I give multiple grids/canvas as drop locations and drop the control in any one as per my choice(desired location).Or else can such a thing be achieved in any other way.
Thanks
Manas

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 31 Aug 2009, 10:13 AM
Hi Manas Rastogi,

I am not quite sure that I undesrtood your propblem correclty.

If the problem is that one item overlaps another, you can use the Canvas.ZIndex attached property to modify the ZIndex (z stacking) of an element. This property only works for elements that are children of one and the same element.

If want to drop the item in specific Grid Row/Column, then you can do two things:
1. Calculate where the element will fall and set the Grid.Row and Grid.Column properties. This will only work if you have simpler column / row definitions.

2. Place dummy items (like borders or rectangles) in the grid where you would like your items to go. Then you can use them for highlighting the drop are and on successful drop you only need to copy the Grid.Row / Grid.Column properties.

Hopefully this will work in your case,

All the best,
Miroslav
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.
Tags
DragAndDrop
Asked by
Manas Rastogi
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or