Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rachel Santamaría on Oct 27, 2009 04:55
open dhtmlx forum
grid disable cell

Hello!

Is very urgent!
I want to disable one cell of a specific row. I have this:
-----
grid.forEachRow(function(row){
    grid.forEachCell(row, function(c){
        c.setDisabled(true);
    });
});
-----

But I want to disable a cell of index 4 and I don't want go all cells!!

can I do some like grid.cells(row, 4).cell.disable(true) ??
Answer posted by Support on Oct 27, 2009 05:41
To disable only necessary cell you can use:
grid.cellById(ROW_ID,COLUMN_INDEX).setDisabled(true);
Answer posted by Rachel Santamaría on Oct 27, 2009 05:50
Thanks