SMART datagrid v.1 > Classes > DataSet
Specify user data which can be managed in application about each data row specified by rows.
If specify null or undefined in rows, it will specify tag about all rows.
If Tag of one or more rows is actually changed, GridDataSet.onTagsChanged event or TreeDataSet.onTagsChanged event will be fired. The data of any types, such as JSON object or a simple value, is possible for Tag. In addition, you can refer the specified tag in data set or several Expressions of grid and tree.
You can get the tag which is set in each data row by getRowTag.
// Change data tag of the selected rows.
var rows = grid.getSelectedRows();
if (rows && rows.length > 0) {
var tag = _getRowTag(rows[0]);
rows = grid.getDataIndicesOfRows(rows);
ds.setRowTags(rows, tag);
}