Finds and returns matched records.
find(match, [returnIndex])
match object, set of properties to match
returnIndex boolean, if true returns index of matched records
Returns an array of objects or an array of integers or an empty array.


This method returns an array of record objects or an array of recids for all matched records. The match argument is a JavaScript object with key-value pairs. It will match this pairs with the items in the records array. For example, if match = { type: 1, status: 'Open' } then it will return all records where type is 1 and status is 'Open.' If you have following grid: You can find

User Comments

comments powered by Disqus