filters TreeGrid 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 treegrid by 2nd column by value "alf"
myTreeGrid.filterBy(1,"alf");
//filter treegrid by 2nd column with a more complex rule
myTreeGrid.filterBy(1,function(data){
// true - show the related row, false - hide the related row
return data.toString().indexOf("alf")!=-1;
});
//filter current treegrid state by 3rd column by value "Omega"
myTreeGrid.filterBy(2,"Omega",true);
Back to top