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

Drag and drop grid row to a textbox?

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 04 Sep 2008, 11:09 PM
Is there any way to drag a row from a radgrid and drop it on a textbox? I would like to set the text of the textbox to the contents of the row from the grid. I seem to only see ways of dragging and dropping from grid <--> grid or grid <--> treeview, but nothing that deals with textboxes.$0$0$0$0I'm sure it could be possible with a lot of javascript, and if so, does anyone have some examples of how to get the data being dropped on the textbox? I tried the javascript event on the radtextbox "OnMouseOver" but I am not sure how to get the contents of the eventArgs... as I keep getting [object Object] back no matter what I try. Is there a special method within the eventArgs? I can't seem to find any good documentation that lists the possible hidden/built in methods for the javascript events.$0$0$0$0$0Thanks$0

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Sep 2008, 07:22 AM
Hi,

The Telerik demo shows how you can drag and  drop a grid row to a trash can.You can alter the logic to drop into a textbox.

http://demos.telerik.com/aspnet/prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx

Thanks,
Princy
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or