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
myTreeGrid1.moveRow("row1","up");
//move row down
myTreeGrid1.moveRow("row1","down");
//put row with id "row1" after row with the id "row2" in the treegrid[2]
myTreeGrid1.moveRow("row1","row_sibling","row2",myTreeGrid2);
Back to top