.dataTable().makeEditable() dynamic read_only control via client
.dataTable().makeEditable() dynamic read_only control via client
Hello,
I have searched a lot the net and I wasn't able to find an answer about dynamic "read_only" applying on table cells.
I have a table generated by a backend .php script and I use "jquery.dataTable().makeEditable()" to draw/work with the data. Two of columns are editable and the other are "read_only" (the "read_only" class is being propagated via the initial .php table generation).
I am trying to achieve the "read_only" class to be dynamically added/removed from specific cells - to enable/disable editing of cells dynamically (based on a button click for example).
I am successfully adding/removing the "read_only" class but this does not seem to really enable/disable the editing.
Is it possible at all to dynamically enable/disable cell editing? Probably a method/function (to reinitialize the editing of a cell) that I cannot find anywhere?
Thank you in advance,