Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 22, 2008 23:38
open dhtmlx forum
Changing the RowId while Drag And drop

I've two grids, I am doing Drag and Drop from first Grid to second Grid, while doing this I want to Change the RowId of Source Grid to RowId of Target Grid.
Answer posted by Support on Jul 23, 2008 03:07
You can use onDrop event to made any changes after drag-n-drop

mygrid.attachEvent("onDrop",function(sid,tid,nid,sgrid,tgrid){
    //sid - id of draged row in source grid
    //tid - id of target row
    //nid - new id of draged  row, which was assigned in target grid
    tgrid.changeRowId(nid, any_neccessary_id_here );
});