hiding the column but it must occupy its space

hiding the column but it must occupy its space

omerabbasi78omerabbasi78 Posts: 17Questions: 7Answers: 1

hiding any column is easy as we can apply
visible: false;

this to hide it but it leaves the space for other columns. my requirement is that the hidden column must occupy its space and should be hidden. what are the options?
thanks

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    Answer ✓

    so you don't want the column to be invisible, just the data in the column. I would probably approach that by putting the data in a span with a css class attached. Then apply that class by adding or removing a class at the tbody or table level.

    Click the toggle button here http://live.datatables.net/fuvedeji/1/edit

  • omerabbasi78omerabbasi78 Posts: 17Questions: 7Answers: 1

    Thanks a lot @bindrid. That did the trick for me. :smile:

This discussion has been closed.