Add row

When i click on the add a row button a new row is being added on the top of the selected row. I would like to have the new row inserted at the bottom of the grid. How can this be done?

The fird parameter of addRow command allow to set position at which new row will be added. If you need to add row at last position , just set it as -1

    grid.addRow(new_id, values , -1);   //adding row to end of grid