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

Dynamic drag&drop

3 Answers 50 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 19 Oct 2011, 02:00 PM
I want to dynamically display some data inside a tileviewitem WHILE I'm dragging it; for example displaying row & column data (via binding). Is this possible? It seems that the tileviewitem is static when you drag it. When I bind some dynamic data to it the updates stop when the drag is initiated.

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 24 Oct 2011, 12:56 PM
Hello Jorn,

 I am not sure I understood you completely. If you are creating a custom drag cue, you can use different type of controls and bind them. Do you actually need to change the data that this bound control shows while you are dragging it ? Could please elaborate more on your specific scenario, this way we would be better able to assist you ? 

Bestt wishes,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Trude
Top achievements
Rank 2
answered on 24 Oct 2011, 01:11 PM
My scenario is this:

I have some databound tileviews and the users can drag & drop tileviewitems between these. Certain combinations are allowed and some are not; for example you can drag type A and B to C, but you cannot drag C to A and B. I want the tileviewitems to display whether the drop is allowed or not; for example a red border when a drop cannot be made, but when the drag operation is started the tileviewitem is not updated if I bind it to a (dynamic) property. Alternatively there could be a visual clue directly underneath the tileviewitem, but I don't know how to implement that.

In my application I also have a listbox with items that can be dragged and dropped onto the tileviews. Here I use the TreeViewDragCue and update it's status via a (dynamic) property; but it does not seem you can have one of these on top of the tileviewitem while dragging.
0
Petar Mladenov
Telerik team
answered on 27 Oct 2011, 02:24 PM
Hi Jorn,

 I used one of the projects that we have previously discussed with you. Basically I used TreeViewDragCue and played with its style and IsDropPossible property when the destination is the right or the left RadTileView. Please examine it and let us know if the suggested approach could help you.

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TileView
Asked by
Trude
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Trude
Top achievements
Rank 2
Share this question
or