-
I've update a record on the table but the underlying data.record has only updated the the changed fields. The row needs to reload after updating. I'm not quite sure how to do this. Is it to call reload in recordUpdated. I've tried this recordUpdated: function (event, data) { $('#OrdersTableContainer').jtable('reload'); } but it hasn't re-run the underlying sql query. I get the correct result if I refresh the whole page using Ctrl-shift-R And I've tried recordUpdated: function (event, data) {location.reload();} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
First upgrade to the latest released version (it has more trigger fixes). |
Beta Was this translation helpful? Give feedback.
-
The row automatically gets updated/refreshed. When needing "more" data updated in the row than the data you updated manually, return the complete row via JSON after the update action, see https://github.com/liedekef/jtable/wiki/api_actions#updateaction |
Beta Was this translation helpful? Give feedback.
The row automatically gets updated/refreshed. When needing "more" data updated in the row than the data you updated manually, return the complete row via JSON after the update action, see https://github.com/liedekef/jtable/wiki/api_actions#updateaction
==> you always need to return "OK" (or ERROR, if the update failed) and optionally (parts of) the updated record itself.