Datatables 1.10.0 and reloading ajax with fnServerOData
Datatables 1.10.0 and reloading ajax with fnServerOData
I need to load an odata url, so I'm forced to use fnServerOData, which works well with 1.10.
The problem is when I need to change the url and reload it again.
"table.url('newUrl')" doesn't change sAjaxSource so the url passed to fnServerOData stays the same.
Alas in the source of url() i can read:
// No need to consider sAjaxSource here since DataTables gives priority
// to ajax
over sAjaxSource
. So setting ajax
here, renders any
// value of sAjaxSource
redundant.
But because I'm using fnServerOdata, i need to update sAjaxSource, and it's currently impossible as the fnReloadAjax doesn't work with version 1.10.
¿Anyone care to propose an alternative?
Thanks a lot.