SMART datagrid v.1 > Classes > GridDataSet
Add the values which are transferred by values to new row after the last row.
If it is appended successfully, it will return true. values can be array or JSON object, and JSON object will be restructured as array according to field order and stored in data set.
// If it is appended successfully, the event will be fired.
ds.onRowInserted = function (ds, row) {
var values = ds.getRowObject(row);
$('#value1').val(values['value1');
$('#value2').val(values['value2');
};
ds.appendRow(['value1', 'value2', 111, false, 222]);
ds.appendRow({
'field1': 'value1',
'field2': 333
});