Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 27, 2008 16:34
open dhtmlx forum
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?
Answer posted by Support on Feb 28, 2008 02:15
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