Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on May 07, 2008 04:09
open dhtmlx forum
add new row with id of rowCount + 1

Hi,

I am using dhtml xgrid,
I have a column called rownumber, I have to add a row at the end of all rows with id of total rowCount + 1,
is there any way to find total number of rows exist in a grid?

please suggest me to find the total number of rows....

/Thanks
Raj
Answer posted by Support on May 07, 2008 10:29
>>is there any way to find total number of rows exist in a grid?
This data can be taken as
    var count = grid.getRowsNum();

By the way, grid has special type of column - 'cntr' - which automatically shows row number as its value.