ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: angelahlp on January 02, 2021, 02:59:01 am
-
I need to dynamically disable a row or cell based on the recId. The recId is being sent from an outside source and the related row/cell needs to be disabled/enabled accordingly.
Can you tell me how to accomplish that. I saw the "editable" "option" and demo, but can't seem to get it to work.
-
Conditional editability for rows / cells can be obtained with editable callback.
https://paramquery.com/pro/api#option-editable for rows.
https://paramquery.com/pro/api#option-column-editable for columns.
editable: function(ui){
if(ui.rowData.recId == 'some value' ){
return true or false;
}
}