Disable edit for certain row
Hi,
Does anyone know if there's an option do prevent edit for a certain row, based on an identifier?
ex: if column "status" is "closed", do not show or do not allow edit.
Hi. I need the same thing
tableedit removes the internal span filled as dummy text. I need to prevent this
this feature is really necessary! any workaround?
how would you workaround it? If you need a row that is not meant to be edited but to highlight something that is to be seen by the operator. table-edit removes all innerhtml from the TD
This feature is very much required. If any one has achieved this please let us know.
i need it too,
Hey folks, I just found a trick, the rows you need to skip just add "data-tabledit-done" attribute on these rows. For example:
<tr data-tabledit-done="1">
<td>ID</td>
<td>Name</td>
</tr>
I got it from the scipt actually, it always check rows where "data-tabledit-done" attr is not set.
var $td = $table.find('tbody tr:not([data-tabledit-done]) td:nth-child(' + (parseInt(settings.columns.editable[i][0]) + 1) + ')');
So, if I add this attribute in the required rows, it will simply skip this. I don't know javascript well, otherwise I would implement a method for this.