Properties bAutoWidth is invalid when DataTables properties "sScrollY" and "sScrollX" is set no null

Properties bAutoWidth is invalid when DataTables properties "sScrollY" and "sScrollX" is set no null

heroadheroad Posts: 4Questions: 1Answers: 0
edited June 2011 in Bug reports

I initalize my dataTables with bAutoWidth: true and sScrollY:225, sScrollX: 100% , DataTables columns's width don't readjuest when i show/hide my div

Thanks , DataTables is very good !

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    You need to call this API function http://datatables.net/api#fnAdjustColumnSizing - when you should hide the element, since DataTables can't know that you've done that.

    Allan
  • heroadheroad Posts: 4Questions: 1Answers: 0
    Hi,allan

    I try to call function fnAdjustColumnSizing when I show/hide div,DataTables's width is readjusted when div is hide,but DataTables don't readjust width when div is shown.

    Thanks allan .

    Heroad
This discussion has been closed.