Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gayathri on Nov 09, 2007 04:48
open dhtmlx forum
Last row id in the grid

Hi,
I want to retrieve the last row id of the grid. Is that possible? if yes, could you please tell me how to do it. Also is there a way to get max row id of the grid?
Thanks for your help in advance.

Answer posted on Nov 09, 2007 05:37
number of rows in grid can be taken as

    var count = grid.getRowsNum();

last row id

    var id = grid.getRowId(grid.getRowsNum()-1);