width dataTable fixedColumns recalculate

width dataTable fixedColumns recalculate

ardiardi Posts: 6Questions: 0Answers: 0
edited October 2012 in General
sorry for my english :-)
translated by http://translate.google.ru
Help a table #FixedTables (FixedColumns) when loading a page width of the table is calculated fine, but if we assume unlock the hidden div appears scrolling a page and width of the table is not changed.
[code]
$(document).ready(function () {
initTable();
tableActions();

});
function initTable() {
return $('#FixedTables').dataTable({
"bRetrieve": true,
"sScrollY": "300px", //(0.5 * $(window).height()),
"bScrollAutoCss": true,
"bInfo": false,
"bSearchable": false,
"sScrollX": "100%",
"sScrollXInner": "150%",
"bDeferRender": true,
"bAutoWidth": false,
"bScrollCollapse": true,
"bPaginate": false,
"bFilter": false,
"bSort": false,
"bProcessing": false,
"asStripeClasses": ['odd', 'even']
});
}

function tableActions() {
var oTable = initTable();
var oFC = new FixedColumns(oTable, {
"iLeftColumns": 1,
"iLeftWidth": 150
});
}
[/code]

Replies

  • ardiardi Posts: 6Questions: 0Answers: 0
    edited October 2012
    example: http://live.datatables.net/ecujef/6/

    run effect.
  • ardiardi Posts: 6Questions: 0Answers: 0
    edited October 2012
    may not have enough information? :-)
  • ardiardi Posts: 6Questions: 0Answers: 0
    edited October 2012
    example for wide width screen: http://live.datatables.net/ecujef/7

    run effect.
  • ardiardi Posts: 6Questions: 0Answers: 0
    debug code: atepap
  • ardiardi Posts: 6Questions: 0Answers: 0
    example for wide width screen (FixedColumns.nightly.js):
    http://live.datatables.net/ecujef/8
    scrollX appeared under the left column fixed.
    width recalculated correctly. :-)
This discussion has been closed.