Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kunal on Nov 07, 2008 03:40
open dhtmlx forum
how to get index of first row in grid

hi,

I have used numbers 0,1,2,.. to set the values of row id in a grid
mygrid.setRowId(ind, row_id);

now I am calling some custom row manipulation functions on grid,
where I am not able to get a row index for zero th row ie. first row of grid..
I am using
mygrid.getRowIndex(mygrid.getSelectedId()); api..
This happens for zeroth row only otherwise for all other rows , I am getting row index..
Answer posted by Support on Nov 10, 2008 09:34
The ID == 0 is reserved for virtual root item, it can't be used as row ID ( same as null, false, undefined values )