fnDraw() on serverside table does nothing.

fnDraw() on serverside table does nothing.

ThalliusThallius Posts: 31Questions: 4Answers: 0
edited August 2013 in General
Hi,

I build my table with

[code]

$(document).ready(function()
{
$('#modalityTable tbody').on( 'click', 'tr', function ()
{
var data = modalityTable.fnGetData( this );
editModality(data);
});

var modalityTable=$('#modalityTable').dataTable(
{
"sScrollY": $('#content').height()-74-26,
"sScrollX": $('#content').width(),
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "./datasource/ge_get_modality.php",
"bStateSave": true
});
});

[/code]

When I finish my editModality() function I want to refresh the table to read the changed data. So I try

[code]
modalityTable.fnDraw();
[/code]

but the Table does not change anything.

Any suggestions?

Claus

Replies

  • allanallan Posts: 63,508Questions: 1Answers: 10,471 Site admin
    Looks like it should work. Can you link to the page so we can see what is going wrong please?

    Allan
This discussion has been closed.