Categories | Question details Back To List | ||
The grid cell method setDisabled() errors when used in a forEachRow() method Hi, I am using myGrid.cellByIndex(rowId, 2).setDisabled(true) for disabling a cell, however I am unable to use it in a forEachRow() method like so: myGrid.forEachRow(function(rowId){ myGrid.cellByIndex(rowId, 2).setDisabled(true); }) I get the following error: Error: c.childNodes is undefined Source File: http://dev1.dataproservices.co.uk:83/3rdparty/dhtmlx/dhtmlx.js Line: 977 How can I disable all cells in a column please? Thanks, Martin Answer posted by Support on Jun 02, 2009 07:40 Iterator provides row ID as parameter, not row index The correct code will be myGrid.forEachRow(function(rowId){ myGrid.cellById(rowId, 2).setDisabled(true); }) |