SMART datagrid v.1 > Classes > RowFilter

Back  Forward

DataLudi.RowFilter.active  property

Only when it is true, the row filter will be applied. 

Defaults to true.

Getter
function active(): Boolean
Setter
function setActive(value: Boolean)
Code -1
    // Get and display only the top 10 rows.
    grid.setRowFilter({
    	callback: function (row) {
    	    return row.index() < 10;
    	}
    });

    $('#toggleFilter').click(function () {
        grid.setRowFilter({
            active: !grid.rowFilter().active()
        };
        
        // You can also write as below.
        grid.rowFilter().setVisible(!grid.rowFilter().active());
        
        // You can also write as below.
        grid.toggle('rowFilter.active');
    });
See Also
callback
expression
DLBase.toggle
Examples
Row Filtering