Reload table content using _fnAjaxUpdate

Reload table content using _fnAjaxUpdate

msusermsuser Posts: 3Questions: 0Answers: 0
edited May 2013 in General
I tried to reload the table content by calling _fnAjaxUpdate function, but after I called that function the table was empty. The table was empty because _fnCalculateEnd( oSettings ) was not called before _fnDraw( oSettings ) in _fnAjaxUpdateDraw ( oSettings, json ). When I modified that, everything worked ok. Could somebody confirm that this is a good fix for the issue or that there is another solution? Thanks.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    I'd suggest not using the internal functions, but rather the API plug-ins such as fnReloadAjax: http://datatables.net/plug-ins/api#fnReloadAjax

    Allan
  • msusermsuser Posts: 3Questions: 0Answers: 0
    There is no fnReloadAjax in jquery.dataTables.js (version 1.9.4)
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    No there isn't. That's why I linked to the plug-in that adds it.

    Allan
  • msusermsuser Posts: 3Questions: 0Answers: 0
    I understand now, thanks!
This discussion has been closed.