SMART datagrid v.1 > Classes > ColumnFilter

Back  Forward

DataLudi.ColumnFilter.active  property

Only if specify this value as true, this filter will be applied to the column. 

When setting the filter for the first time or adding the filter in the column of running, if specify this property value as true, it will be applied immediately. Later, you can apply or remove the filter by calling DataColumn.activateFilters or toggleFilters

In addition, you can apply or remove the filter by changing this property value directly. 

Defaults to false.

Getter
function active(): Boolean
Setter
function setActive(value: Boolean)
Code -1
    $('#toggleFilter').click(function () {
        var col = grid.columnByName('colUnit');
        var filter = col.getFilter('filter01');
        filter.setActive(!filter.active());
    });
See Also
expression
visible
DataColumn.filters
DataColumn.activateFilters
DataColumn.toggleFilters
Examples
Column Filtering
Column Auto Filtering