Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 10, 2008 10:53
open dhtmlx forum
grid

How can i know if the currently selected row in a grid is the first row or the last row in the grid??
Answer posted by Support on Jul 11, 2008 01:24
var index = grid.getRowIndex(grid.getSelectedId())

if (index==0) first();
if (index==grid.getRowsNum()-1) last();