w2grid.get

Finds the record and returns its object or index in records array.
get(recid, [returnIndex])
recid string, id of the record
returnIndex boolean, optional, indicates if to return a record or its index in records array
Returns object, integer or null.

Description

The first argument recid is the id of the record to find. It is not the index of the record in the .records array. If the record does not exists in the .records array, the method will return null.
If you have grid defined in the following way: You can get the record:

User Comments

comments powered by Disqus