Categories | Question details Back To List | ||
OnDrop I've two Grids in the page. I am doing Drag and Drop from First Grid to Second Grid, I want to Change the RowId of SourceId to TargetId Format while Dropping into the Target Grid. Answer posted by Support on Jul 23, 2008 06:32 There is changeRowId method which allows to change id. You can this method from the onDrop event handler: grid.attachEvent("onDrop",function(SourceId,TargetId,DroppedId,SourceObj,TargetObj){ TargetObj.changeRowId(SourceId,NewId) }) If the dragged item has id which exists in the target grid, this id we be replaced automatically by a random number in the target grid. In this case the new id is DroppedId (the 3rd parameter of the onDrop event handler). |