Returns first record displayed in the grid
getFirst([index])
index |
integer, (optional) record index if not first |
Returns string.
Description
This method return record displayed in the grid. If there is no local search, first
displayed record is the first record in
.records array. However, if local search is applied,
it is not always first.
After local search is applied, the ids of the records that match search criteria are stored in
.last.searchIds array.
If you have a grid defined in the following way:
You can get all the changed records: