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.
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.