SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.clearColumnTags  method

Initialize tag value of all columns being contained in the grid as undefined

If parameter tag is not specified, it will all remove without comparing. 

function clearColumnTags (refresh: Boolean, tag: *);
Returns
Void
Parameters
refresh - Boolean. required.
If it is true, it will redraw the grid after removing tags.
tag - *. Defaults to undefined.
It only removes the tag of column which has the same tag as this value. If do not specify or it is an empty value, it will remove the tag of all columns.
Code -1
    $('#clearTags').click(function () {
        grid.clearColumnTags(true);
    });
See Also
columnByTag
columnsByTag
GridColumn.tag
Examples
Column Styles