FixedHeader not updating when columns are hidden using ColVis

FixedHeader not updating when columns are hidden using ColVis

l0zl0z Posts: 15Questions: 1Answers: 0
edited March 2014 in FixedHeader
DataTables 1.9.4, ColVis 1.1.0, FixedHeader 2.1.0

When I hide or show columns using ColVis, the FixedHeader does not update. Is this something I can force? I read that I could add my own event to ColVis but don't know where or how I'd do this, is it easy to provide an example? I assume I'd need to call FixedHeader's fnUpdate method.

Replies

  • l0zl0z Posts: 15Questions: 1Answers: 0
    I'm using bootstrap and server side processing, too. As well as Editor, TableTools and ColumnFilter
  • AOzAOz Posts: 3Questions: 0Answers: 0
    I see that this topic has no resolution, and I didn't want to start a new discussion. Has this been resolved? I am experiencing the same issue, hiding columns with ColVis, does not hide the header in the FixedHeader. And when "un-hiding" a column that was hidden on a load an error is thrown
    [quote] Uncaught TypeError: Cannot set property 'className' of undefined [/quote]

    DataTables 1.9.4
    ColVis 1.1.0-dev
    FixedHeader 2.1.1-dev
  • AOzAOz Posts: 3Questions: 0Answers: 0
    It seem to be an issue with DataTables 1.9.4 it works fine with 1.10.0-rc.2.dev
    I forked one of allan's jsfiddles but didn't include css http://jsfiddle.net/xMe3P/
This discussion has been closed.