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

Drag and Drop

3 Answers 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mostafa
Top achievements
Rank 1
Mostafa asked on 13 Jan 2015, 03:06 PM
Hi
I want to drag a row from a radgrid and drop it in a specific cell of another Radgrid and save it. Is it possible? If possible then please Help me as soon as possible.

 
 

3 Answers, 1 is accepted

Sort by
0
Mostafa
Top achievements
Rank 1
answered on 13 Jan 2015, 03:20 PM
For Example I have two grid. grid1  and grid2
grid1 have column named id,player1,player2,game,club
grid2 have column named id,name,age
I want to drag a row of grid2 and drop it on player1 cell of grid1 and save the name, if i drop the row on player2 then it save in player2
otherwise nothing will happen.
that's means i want to drop a row on a cell. please help me.
 
 
0
Kostadin
Telerik team
answered on 16 Jan 2015, 09:14 AM
Hi Mostafa,

I would recommend you to check out the following live example which demonstrates how to drag and drop items from one RadGrid control to another. When you reviewing the exampole you will noticed that there is a client event named onRowDropping and in its arguments there is a property named get_destinationHtmlElement() which returns what is the element where you drop the item. In case this element is one of the player cells then you can continue the logic otherwise you have to cancel the event by setting set_cancel(true). More information is available in our documentation in the following help article.

Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mostafa
Top achievements
Rank 1
answered on 16 Jan 2015, 09:41 AM
Hi Kostadin
Thank you for your reply.I see the demo. it helps me .
 
 
Tags
Grid
Asked by
Mostafa
Top achievements
Rank 1
Answers by
Mostafa
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or