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

Visual effects while dragging

3 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JeffN
Top achievements
Rank 1
JeffN asked on 02 Jun 2008, 04:51 PM
We need some visual effects while dragging items from one grid to another. Specifically, we'd like the pointer to change to a plus sign when in a droppable area (but I've been told this isn't built in within a previous post), and we'd like to show a line before/after the grid items that we're dragging over to show where the record will be dropped to upon MouseUp. Is there any event to tap into that would allow this to happen? Or any other method to get this done?

I think what would be optimal is something like the OnClientDrag event that is part of the RadDock control. It doesn't look like the RadGrid has any similar events though.

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 05 Jun 2008, 08:10 AM
Hi JeffN,

RadGrid for ASP.NET AJAX exposes three client-side events - OnRowDragStarted, OnRowDropping and OnRowDropped - which can be utilized to accomplish the task you set forth. Further information about these events and their usage can be gather from the relevant online demo of the product:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx

as well as from the corresponding chapter from the online documentation:

http://www.telerik.com/help/aspnet-ajax/introduction.html (chapter RadGrid -> Client-Side API reference -> Classes -> Subscribing to client events)

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Otto Neff
Top achievements
Rank 2
answered on 19 Dec 2011, 05:07 PM
Hi,

i have the same problem... i tried to use the mentioned OnClient Events to highlight/change css of a target drop zone (div).
Unfortunally none of the events is fired while moving with the item to be dragged.

Can you provide a demo how to use the Grid as the OnClientDrag from the RadDock (highlight area while dragging).

Kind regards.
0
Otto Neff
Top achievements
Rank 2
answered on 21 Dec 2011, 09:17 AM
Hi,

i just solved the problem with jQuery mouseenter and mouseleave. See my Blog Post with the solution:

http://ext-net.blogspot.com/2011/12/highlight-target-area-while-dragging.html 
Tags
Grid
Asked by
JeffN
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Otto Neff
Top achievements
Rank 2
Share this question
or