ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: Ekanta on August 26, 2016, 02:43:36 pm
-
Hi All,
I have a requirement in that based on the value of the column i have to lock the entire row in the grid. I tried using below code but it is not working for me. Could you please help me in resolving the issue.
grid.pqGrid("removeClass", { rowIndx: validatedRowNums, cls: 'pq-row-edit' });
where validatedRowNums array will have row numbers to be locked.
Regards,
Ekantaraju KG
-
editable callback can be used to conditionally make the rows editable based on a column value.
http://paramquery.com/pro/api#option-editable
-
Thanks for your help. This solution is worked. I want to apply the class disabled to that particular row. I am using below line of code but it is not working.
grid.pqGrid("addClass",{ rowIndx: rowIndx, cls: 'disabled' });
Basically I want to change the color of the rows to grey if rows are not editable.
Regards,
Ekanta