Check documentation for the latest version 6.0 of dhtmlxSuite gridToGrid DHTMLX Docs

gridToGrid

redefine this method in your code to specify how grid row values should be used in another grid

void gridToGrid(string|number rowId,object sgrid,object tgrid);

Parameters

rowIdstring|numberthe id of the dragged row
sgridobjectsource grid object
tgridobjecttarget grid object

Example

myGrid.gridToGrid = function(rowId,sgrid,tgrid){
    var z=[];
    for (var i=0; i<sgrid.getColumCount(); i++) // for each cell in the source grid
    z[i]=sgrid.cells(rowId,i).getValue();       // prepare data for the target grid
    return z;
}

Back to top