fixedColumns in datatable,resize window,datatale resize its width and height ,but fixedColumns not

fixedColumns in datatable,resize window,datatale resize its width and height ,but fixedColumns not

ztingzting Posts: 2Questions: 1Answers: 0
edited May 2017 in Free community support

hello,
I encounter a problem when using the fixedcolumns in datatables.
when I resize the window,datables will adjust its width and height to window. But fixed Columns will not.(thead in DTFC_LeftHeadWrapper and tbody in DTFC_LeftBodyLiner width and height not adjust.
I found fnRedrawLayout in fixedColumns.js did resize the total two fixed columns instead of every one column in two fixed Columns)
Then the datable will be strange with two fixedcolumns,how can i solve this problem? I wonder if there is function in fixedColumns which can update its width and height?
Thank you very much~

Answers

  • ztingzting Posts: 2Questions: 1Answers: 0
    edited May 2017

    I just found in fixedColumns.js the api

    mydatatable.fixedColumns().relayout();     
    

    It works!
    Thanks very much.

This discussion has been closed.