ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: elearnster on August 13, 2014, 09:55:57 pm
-
I am using "editable: false"as an option in the colModel. I would like to make the column editable programmatically. I tried the API below, but could not get it to work. What API do you recommend and could you provide a little explanation? Thanks in advance.
//setter
//set editable of 2nd column
colM[1].editable = false;
$( ".selector" ).pqGrid( "option", "colModel", colM);
-
a column or a cell can be programmatically made non-editable by implementing column.editable callback variant.
colM[1].editable = function( ui ){
if ( some condition ){
return true; //to enable editing
}
else {
return false; //to disable editing.
}
}