Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 01, 2008 03:30
open dhtmlx forum
DHTMLX Grid : Error after changing value of cell

Hi,
Whats the problem in following code ??

for (var i=0; i<libTableGrid.getRowsNum(); i++)
{
            var j = i+1;
            libTableGrid.cells2(i,0).setValue(j);
            libTableGrid.setRowId(i,j);
}

I am getting c has no property in dhtmlxgrid.js.
Answer posted by Support on Sep 01, 2008 05:47
Are you using grid in normal or srnd|paging mode? In second case accessing rows, by their index is not reliable, they can be accessed by IDs only.
Also problem can be caused by incorrect column type used in setColTypes command.