SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.unsetRowTags  method

Remove the tag of data rows which have data tag among the values specified by tags of rows specified by rows

If do not specify rows, it will check about all data rows. And, if do not specify tags, it will remove data tag of all rows of rows. If do not specify rows and tags, it will remove data tag of all rows as the same as clearRowTags

If actually remove the tag of one or more rows, GridDataSet.onTagsChanged event or TreeDataSet.onTagsChanged event will be fired, and if do not specify rows, tags, onTagsCleared event will be fired. 

function unsetRowTags (rows: [Integer|TreeDataRow], tags: [*]);
Returns
Void
Parameters
rows - [Integer|TreeDataRow].
tags - [*].
Code -1
    var rows = tree.getSelectedRows();
    if (rows && rows.length) {
        rows = tree.getDataRowsOfRows(rows);
        ds.unsetRowTags(rows, ['#tag1', '#tag2']);
    }
See Also
GridDataSet.onTagsChanged
TreeDataSet.onTagsChanged
onTagsCleared
clearRowTags
setRowTag
getRowTag
TreeDataRow
Expression
DerivedField.expression
Examples
Derived Field & Row Tags
Tree Data Tag
Column Dynamic Styles
Row Dynamic Styles