How can i know if the currently selected row in a grid is the first row or the last row in the grid??
var index = grid.getRowIndex(grid.getSelectedId())
if (index==0) first();
if (index==grid.getRowsNum()-1) last();
How can i know if the currently selected row in a grid is the first row or the last row in the grid??
var index = grid.getRowIndex(grid.getSelectedId())
if (index==0) first();
if (index==grid.getRowsNum()-1) last();