ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: chirag on June 29, 2018, 10:44:42 am
-
How to disable particular row for editing?
-
Rows can be enabled/ disabled for editing based on any run time condition by using editable callback
https://paramquery.com/pro/api#option-editable
-
I achieved conditional row editing by editable callback. But is there any way to make exception for one column.
I want one column always editable.
Thanks.
-
Add editable: true to the exception column.
and move editable callback to columnTemplate
columnTemplate: {
editable: function (ui){
}
}
https://paramquery.com/pro/api#option-columnTemplate
-
That's not work for me. I have conditions for each column for editable purpose. That will overwrite by column template. Please find screenshot.
Row with blue color are non editable but in that "Plan'18" column should be editable always.
Column with "ACT" header is always non editable at the same time and column with "LTF" header is in editable mode.
-
column.editable callback gets both row and column based parameters.
https://paramquery.com/pro/api#option-column-editable
so move all your conditional row and columns based editable logic in a single editable callback and add it to columnTemplate.
columnTemplate: {
editable: function (ui){
//use row based conditions with ui.rowIndx or rowData.
//and use column based conditions with ui.dataIndx
}
}