fnDraw() issue
fnDraw() issue
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.
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.
This discussion has been closed.
Replies
Used fnReloadAjax() instead of fnDraw().