:: Forum >>

Make certain columns editable in XML Grid

All,

We have a big grid with large number of columns based on XML. We need to make only certain columns editable. I am using the following code to make it happen.

myGrid.setCellEditable(true);

myTable.setText = function(value, col, row){
    var node = this.getNode(col, row);
    if (node != null) {
if ( col == 1 || col == 13 || col == 23) {
     node.text = value;
}
}
}



First of all, is there any other API that achieve this like setColumnEditable() or setCellEditable(col, true/false) ?

Second, with this approach user will still be able to get a non-editable column in Editable mode but wont be able to type in the values. Is there any way that i can make the column not even able to edit?

Raj Nair
Friday, August 18, 2006
found it : myGrid.setCellEditable(true,1);
Raj Nair
Friday, August 18, 2006

This topic is archived.


Back to support forum

Forum search