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 :wink:

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);