SMART datagrid v.1 > Classes > DataSet
Set the state of data rows which are specified by parameter rows as state.
If checkStates is true, you can set by this method by force though State of data row is automatically set during row appending, updating, deleting. If force is true, it will be set even if checkStates property is false.
If rowEvents is true, GridDataSet.onStateChanged event or TreeDataSet.onStateChanged event will be fired in the row of which state has actually been changed, and if false, GridDataSet.onStatesChanged event or TreeDataSet.onStatesChanged event will be fired once.
var rows = treeMain.getSelectedRows();
if (rows && rows.length > 0) {
rows = treeMain.getDataRowsOfRows(rows);
dsMain.setRowTags(rows, '#ludi');
}
var createdRows = dataset.getStateRows(DataLudi.DataRowState.CREATED);
dataset.setRowState(createdRows, DataLudi.DataRowState.UPDATED, true);