moves a row
rowId | string|number | the id of the source row (the row that will be moved) |
mode | string | moving mode ("up","down","row_sibling") |
targetId | string|number | used just in the "row_sibling" mode. The id of the target row (the row after which the source row will be pasted) (optional) |
targetGrid | object | used for moving between grids (optional) |
Available only in PRO Edition
//move row up
myGrid1.moveRow("row1","up");
//move row down
myGrid1.moveRow("row1","down");
//put row with id "row1" after row with the id "row2" in the grid[2]
myGrid1.moveRow("row1","row_sibling","row2",myGrid2);
Back to top