I am using DataTables along with responsive and facing issues while trying to display only certain columns.
Table layout is like this:
I need to display to
To show specific columns in responsive datatable, you just need to add Class Controls in th of table, as follow:
Column 1
Column 2
Column 3
Column 4
Column 5
Column 6
Column 7
Column 8
Column 9
Column 10
Column 11
class "all": Always display column irrespective of the screen size.
class "none": Don't display as a column, but show in the child row.
Source
Here is its working demo.
- 热议问题