Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by BjT on Jan 19, 2008 03:16
open dhtmlx forum
dhtmlx grid add row add the end of all rows

Hi,

how can I add a row at the end of all rows. It would be great if the scrollbar switch automatically to the new at the end.
Sorry for my english. I´m german.
I hope you understand my question ;-)
Answer posted by Support on Jan 21, 2008 04:29
To add row in lats position, just set index to -1
    grid.addRow(new_id,data,-1);   // set row in last position

To be sure that row visible add next command after row adding
    grid.showRow(new_id);