SMART datagrid v.1 > Classes > GridDataSet
Change the number of data rows.
If count parameter is less than the existing row number, the rows after count will be deleted. Deleting event will not be fired. If count is greater than the existing row number, the data rows as much as needed will be added.
If actually change the row number, onRefresh, onRowCountChanged events will be fired in order.
If do not specify fillDefaults and defaultValues, the appended row will exist as an empty state without value, and it can be filled in with values by updateRow later. You can check whether the data row is empty by calling hasData.
$("$addRows").click(function () {
var defaults = ['seoul', undefined, 7878, 'ludi'];
ds.setRowCount(ds.rowCount() + 2, true, defaults);
});