Tables loosing filtering options

Tables loosing filtering options

tablelovertablelover Posts: 1Questions: 0Answers: 0
edited August 2012 in General
I have multiple instances of the same table on a page with unique Ids for each table instance. These unique ids are dynamically generated.
I've no no problem adding them. I see ally the filtering options. The issue is only when i refresh the page. What happens is the most recently added table gets the filtering options whereas the previously added tables loose them. Any help appreciated.

here is my table info


var oTable;
$(document).ready(function () {
initDataTable();
oTable.fnDraw(false);

});

function initDataTable() {
oTable= $('#<%#InvalidConstraintid %>').dataTable({
"bJQueryUI": true,
"bRetrieve": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"bSort": true,
"bAutoWidth": false,
"oLanguage": {
"sLengthMenu": "_MENU_ per page",
"sInfo": "_START_ to _END_ of _TOTAL_",
"sInfoEmpty": "0 to 0 of 0",
"sInfoFiltered": "(filtered from _MAX_)",
"oPaginate": {
"sNext": ">",
"sPrevious": "<",
"sFirst": "<<",
"sLast": ">>"
}
},
"asSorting": ['asc', 'desc'],
"aaSorting": [[0, 'asc']],
"aoColumns": [{ "aDataSort": [0, 1], "sWidth": "13%" },
{ "aDataSort": [1, 0], "sWidth": "65%" },
{ "sType": "date", "aDataSort": [2, 1], "sWidth": "10%" },
{ "sType": "src-string", "aDataSort": [3, 1], "sWidth": "12%", "sClass": "center"}]
});

}

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    Think we'd need a link to a page demonstrating this issue to be able to offer any advice.

    Allan
This discussion has been closed.