Skip to content

filter

filters the component

function filter(
// a template of filtered value or function
text: template|function,
// the filtering mask
value?: string,
// if set to "true", each next filtering criteria will be applied to the already filtered list
preserve?: boolean
): void
// filters the 'text' field with 'abc'
// using a template
grid.filter('#text#',"abc")
// using a function
grid.filter(function(obj){
return obj.text.toString().indexOf("abc") != -1;
});

also check the next samples:

Articles

API