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

Show Transparent Dragged Item

5 Answers 73 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Balaram Barange
Top achievements
Rank 1
Balaram Barange asked on 09 Mar 2010, 11:20 AM
Hi,
I am working with multiple items drag and drop. My problem is that when i dragged multiple items(say 5-6) and move the mouse over the destinaltion i am unable to see the destination because the dragged items are not transparent and it is diffcult to know the exact position of the drop.
Could you please suggest me the solution or some work around.

Thanks
Balaram

5 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 10 Mar 2010, 01:54 PM
Hello Balaram Barange,

You can try to set Opacity = .5 for example to the dragging visual objects so they're going to be half transparent.
Please let us know if this works for you.

Best wishes,
Miro Miroslavov
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
Balaram Barange
Top achievements
Rank 1
answered on 10 Mar 2010, 05:33 PM
Hi,
I am not getting wich element's Opacity property should be set. In OnDragQuery i am setting the e.source's Opacity property and it set the peropet which is in the tree.

Thanks
Bala
0
Miro Miroslavov
Telerik team
answered on 11 Mar 2010, 07:29 AM
Hello Balaram Barange,

In your OnDragQuery handler you should set Opacity = .5 to the e.Options.DragCue visual element - the element that is dragged visually.
Please let me know if this works for you.

Regards,
Miro Miroslavov
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
Balaram Barange
Top achievements
Rank 1
answered on 11 Mar 2010, 12:58 PM
Hi,
In my OndragQuery event,  e.Options.DragCue is null.
what should i do?

Thanks
Bala
0
Miro Miroslavov
Telerik team
answered on 11 Mar 2010, 04:47 PM
Hi Balaram Barange,

Ok, so you can do this in the OnDragInfo handler, but check if the status is DragInProgress, in this event handler the e.Options.DragCue won't be null.

Kind regards,
Miro Miroslavov
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.
Tags
DragAndDrop
Asked by
Balaram Barange
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Balaram Barange
Top achievements
Rank 1
Share this question
or