Ver 1.9.4 Table resizing

Ver 1.9.4 Table resizing

MariusMarius Posts: 1Questions: 0Answers: 0
edited June 2013 in DataTables 1.9
I am using Datatables 1.9.4 to display data i retrieve form the server with a lot of custom filtering. Everything work correctly on initial page load. when i apply me custom filters the result is also correct however the table size changes fro full screen with to a page centered in the screen. (the Entries on top and the paging at the bottom is still full page . To display the table i call a function "reloadTable", thius is called at page load and when i change the filter conditions. Any suggestions would be helpful.

function reloadTable() {
if (oTable) {
oTable.fnDestroy();
}

oTable = $('#ProfileListHeaders').dataTable({"bProcessing": true,
"sPaginationType": "full_numbers",
"bServerSide": true,
"sAjaxSource": "getPosition_searchresult.asp",
"fnServerParams": function ( aoData )
{
aoData.push( { "name": "OrgChecked", "value": DataStringArr[0][0] } );
aoData.push( { "name": "OrgCheckedsearch", "value": DataStringArr[0][1] } );
aoData.push( { "name": "PosChecked", "value": DataStringArr[1][0] } );
aoData.push( { "name": "Pos_Search", "value": DataStringArr[1][1] } );
aoData.push( { "name": "RFChecked", "value": DataStringArr[2][0] } );
aoData.push( { "name": "RF_Search", "value": DataStringArr[2][1] } );
aoData.push( { "name": "RLChecked", "value": DataStringArr[3][0] } );
aoData.push( { "name": "RL_Search", "value": DataStringArr[3][1] } );
aoData.push( { "name": "Active_Checked", "value": DataStringArr[4][0] } );
aoData.push( { "name": "Active_search", "value": DataStringArr[4][1] } );
aoData.push( { "name": "ProfileOwnerChecked", "value": DataStringArr[5][0] } );
aoData.push( { "name": "ProfileOwner_Search", "value": DataStringArr[5][1] } );
aoData.push( { "name": "ProfileActiveUserChecked", "value": DataStringArr[6][0] } );
aoData.push( { "name": "ProfileActiveUser_Search", "value": DataStringArr[6][1] } );
aoData.push( { "name": "ActiveAccessRoleChecked", "value": DataStringArr[7][0] } );
aoData.push( { "name": "ActiveAccessRole_Search", "value": DataStringArr[7][1] } );
aoData.push( { "name": "ProfileStatusChecked", "value": DataStringArr[8][0] } );
aoData.push( { "name": "ProfileStatus_Search", "value": DataStringArr[8][1] } );
aoData.push( { "name": "ProfileType", "value": DataStringArr[9][1] } );
} ,
"aLengthMenu": [[10, 20, 30, 40, -1], [10, 20, 30, 40, "All"]],
"bStateSave": true});
}
This discussion has been closed.