Table loading old value
Table loading old value
victorc218
Posts: 4Questions: 2Answers: 0
I'm trying to implement the simple inline editing with ajax submission to the server. When I change the value and submit, the table redraws with the old value. If I don't submit, it works like the example and updates the cell with the new value. How do I make the cell use the new value?
This discussion has been closed.
Answers
Make sure you submit data from all pages, not just current page. Please see jQuery DataTables: How to submit all pages form data for a demonstration of a technique to submit all data from all pages.
Make sure that browser doesn't cache server's response by disabling caching with
ajax.cache
option. For example:See more articles about jQuery DataTables on gyrocode.com.
Thanks for the response. I tried disabling caching but it didn't help.
This is what my ajax config looks like.
If I remove it then the editor works as expected and the cell value gets updated.
What is the JSON that the server is returning?
Allan
It looks something like this
REb29a8b43b1e38257eb80da9dbda87a25 is used as the row identifier, DT_RowId
Thanks for the extra information. That is not the format Editor is expecting which would explain the issue. Are you able to modify the returned JSON to match what Editor needs?
If you remove Editor, what are you using to edit the data and submit it?
Allan