addRow

adds a row to the grid

void addRow(string|number new_id,string|number text, [string|number ind] );

Parameters

new_idstring|numberrow ID, must be unique
textstring|numberrow values, may be a comma-separated list or an array
indstring|numberindex of the new row, row is added to the last position by default, optional

Example

var newId = (new Date()).valueOf();
myGrid.addRow(newId,"");

Back to top