Problem refreshing the table

Problem refreshing the table

heljehelje Posts: 1Questions: 0Answers: 0
edited January 2011 in General
Hi,
I use the plugin databable to populate a html table. I use ajax query to fill the tbody part of the table, then initialise the datable object.
[code]
oTable = $('#mytable').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bFilter": true,
"bSort": true,
"bInfo": false,
"bRetrieve":true,
"bProcessing": true,
"aoColumns":[
{"sWidth":"260px"},
{"sWidth":"100px"},
{"sWidth":"100px"},
{"sWidth":"50px","bSortable":false},
{"sWidth":"100px"}
],
"bAutoWidth": false} );
[/code]
In my app, I refresh the datas by emptying and refilling the tbody part. Then I re-initialise the datatable object. The result is alright except one thing : if I sort the columns, the old datas come back ! Seems that the datatable keeps the datas in memory or something.
Any idea ?
This discussion has been closed.