fnDraw() issue

fnDraw() issue

d_vineetd_vineet Posts: 19Questions: 0Answers: 0
edited November 2011 in General
Before posting, I have searched the earlier posts.

Issue: Can't refresh datatable by fnDraw()
Note: The table is initialised & displayed correctly before clicking the 'refresh' link

[code]

function rfsh(){
var oTable = $('#grd_table').dataTable();
oTable.fnDraw();
}

Refresh Table
[/code]

If I use oTable.fnClearTable(); It works. The table data gets cleared.
If oTable.fnDraw(); is used, the table doesn't get refreshed.

What I may be doing wrong in calling "oTable.fnDraw();" ?

Thanks in advance,
Vineet.

Replies

  • d_vineetd_vineet Posts: 19Questions: 0Answers: 0
    edited November 2011
    Fixed it.
    Used fnReloadAjax() instead of fnDraw().
This discussion has been closed.