DataTables and jsViews - $.observable() changes table, how to reload data

DataTables and jsViews - $.observable() changes table, how to reload data

koniczynekkoniczynek Posts: 2Questions: 0Answers: 0
edited April 2013 in General
Hello Everyone,

I use DataTables together with jsViews - works great when it comes to data presentation. However I would like to change some columns using data-link and $.observable() from jsViews. Right now data in table changes perfectly, but DataTables does not know anything about this. I can't search for the changed data, column in which change occurred won't sort properly. I can refresh the whole view and then reinitialize DataTable, but this kills the whole purpose of jsViews $.observable() and removes any DataTable sorting and searching.

Is there another way to tell DataTable to re-read all the values from a table once more?

Your help will be greatly appreciated.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Currently no, there is no way to have DataTables update front he DOM. You must use the API. HOwever, I am working on a new API at the moment in which I plan to introduce a new option for what you are looking for. Its not ready yet, and likely won't be for a couple of weeks, but it is coming.

    Allan
  • koniczynekkoniczynek Posts: 2Questions: 0Answers: 0
    Thank you for your answer. I will wait for the update :)
This discussion has been closed.