Cell content not always returned in JQuery DataTables Editable
Cell content not always returned in JQuery DataTables Editable
Hi,
I'm using DataTables together with JQuery DataTables Editable. I've been using a setup similar to the one found here: http://code.google.com/p/jquery-datatables-editable/wiki/HowTo .
It works great as long as the modified cell isn't the same as the one being sent in as additional information. In the above example code, this would be the first column's cells. If one of those is being modified, then the "cell" value will be empty. Is there a way to get the cell's original value sent in (I need it as it is a part of a composite primary key in the SQL database).
Please let me know if I'm not clear enough!
Huge thanks in advance!
I'm using DataTables together with JQuery DataTables Editable. I've been using a setup similar to the one found here: http://code.google.com/p/jquery-datatables-editable/wiki/HowTo .
It works great as long as the modified cell isn't the same as the one being sent in as additional information. In the above example code, this would be the first column's cells. If one of those is being modified, then the "cell" value will be empty. Is there a way to get the cell's original value sent in (I need it as it is a part of a composite primary key in the SQL database).
Please let me know if I'm not clear enough!
Huge thanks in advance!
This discussion has been closed.
Replies
The fnOnEditing's function actually supports three parameters: input, settings and oldValue. The oldValue keeps the original cell content. Just simply use this variable.