Skip to content

find

returns all rows that match the criterion, or only the first one

function find(
// the criterion to match
criterion: function,
// optional, if true, only the first found result is returned. False by default.
first?: boolean
): array|object

array,object an array of found rows or a row object if the 2nd parameter is set to true

// finds all rows which title match the given value
grid.find(function(obj){
return obj.title.toLowerCase().indexOf(value) != -1;
});

also check the next samples: