w2grid.nextCell

Returns next cell or null if it is last cell in the grid.
nextCell(index, colIndex, editable)
index integer, record index
colIndex integer, column index
editable boolean, indicates if to return next editable cell
Returns { index, colIndex } object or null.

Description

This method returns you next cell or next editable cell It will advance to the next row if any. If there is no next cell, it will return null. Will skip hidden columns.
The first argument index is the index in the .records array. The second argument colIndex is the index in the .columns array.
If you have grid defined in the following way: You can do:

User Comments

comments powered by Disqus