Hello Abu,
Is it possible to make a column editable and not editable based on the checkbox?
Here i attach a picture for your reference.
The edit-ability of the column at bottom of picture is determined by the checkbox at the top of picture.
Is there anyway to make this possible?
Regards
Dear Hafiz, attachment image is missing. Kindly update ticket with image.
Refer this demo. It uses dropdown option to show hide next 2 fields.
https://gist.github.com/gridphp/e1ee390bd3bbabb372958f9fea7a30b8
line 31,32,191
So,
It’s basically impossible to hide a column using “checkbox”. Anyway, thanks for helping.
It is doable. What you can do is to connect onclick function with checkbox column like:
$col[“editoptions”][“onclick”] = “function(obj){ setup_fields(obj); }”;
And in setup_fields() JS function, you can hide / show rows just like above demo code Line 191 by checking value of checkbox using jquery OR passed object.