fnDraw() on serverside table does nothing.
fnDraw() on serverside table does nothing.
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
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
This discussion has been closed.
Replies
Allan