Refresh the table without Ajax

Refresh the table without Ajax

rafalsonnrafalsonn 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ł :smile:

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49

    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 call row().invalidate().render() on that row, you will see update values.

This discussion has been closed.