Enable/Disable Fixed columns

Enable/Disable Fixed columns

adamtarshisadamtarshis Posts: 9Questions: 0Answers: 0
edited December 2012 in Plug-ins
Hi

We have a requirement to enable or disable the datatable fixedcolumn on a button click. Is there a way to handle the fixedcolumn plugin once it is applied on the datatable?

Detailed issue: We were creating nested datatables, but when we expand the sub table from parent, table created by fixedcolumn (on left side) is not getting resized/aligned.

Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Currently no - I'm afraid there is no ability in FixedColumns to enable and disable its interaction as the changes that it makes to the structure of the DOM are quite extensive. Undoing them and redoing the on-the-fly would be quite complicated, so this is not something that FixedColumns provides.

    Are you using fnOpen / fnClose with FixedColumns - I'm not sure how that would work, again because of the structure of the DOM. It might be possible with a full redraw, but I'm not sure to be honest.

    Allan
  • adamtarshisadamtarshis Posts: 9Questions: 0Answers: 0
    Thanks Allan for the reply. Yes i am using fnOpen/fnClose to create the nested tables with fixedcolumn on the left. The nested datatable is getting expanded without any issue.

    I see a comment saying full redraw, do i need to destroy the datatable completely and redraw it?

    Thanks.
This discussion has been closed.