Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Frank on Jan 20, 2009 01:37
open dhtmlx forum
How to disable checkbox in the grid

Please tell me how to disable checkboxes in a grid's checkbox column. Or can the grid set the enable-disable status of the column?

Thank you very much.
Answer posted by dhxSupport on Jan 20, 2009 03:04
You can use the following code:

function disableCol(){
        var rowNum=mygrid.getRowsNum();
        col=4;
        for (var i=0; i<rowNum; i++)
            mygrid.cellByIndex(i,col).setDisabled(true)
        }

col- index of a column which you would like to disable.