filters Grid by mask
| column | number | a zero-based index of column |
| value | string | a value by which the column will be filtered |
| preserve | boolean | filter current or initial state (false by default) |
Available only in PRO Edition
//filter grid by 2nd column by value "alf" myGrid.filterBy(1,"alf"); //filter grid by 2nd column with a more complex rule myGrid.filterBy(1,function(data){ // true - show the related row, false - hide the related row return data.toString().indexOf("alf")!=-1; }); //filter current grid state by 3rd column by value "Omega" myGrid.filterBy(2,"Omega",true);
Back to top