Refresh the table without Ajax
Refresh the table without Ajax
rafalsonn
Posts: 2Questions: 2Answers: 0
Hey guys, I'm new at the Forum, I'm using jQuery Datatables as a component in ember and I'm loading data from Ember-Data. When I'm editing data in the ember-store, the data is not updated, it's updated only when I refresh the whole page.
Greetings, Rafał
This discussion has been closed.
Answers
When you add data to DataTables, it creates a cached version of it for faster sorting, filtering, etc. Please see my response here
I would like to point out that
rows().invalidate()
will accept any updates to the original data and re-render. So if you change the data behind a row and then callrow().invalidate().render()
on that row, you will see update values.