How to control number of column in a child row manually?

How to control number of column in a child row manually?

ajinkya530ajinkya530 Posts: 1Questions: 1Answers: 0

Suppose I have 6 columns in a Responsive DataTable as:
Column 1, Column 2, Column 3, Column 4, Column 5, Column 6

For now DataTable is showing all 6 columns in parent row, but I want last 2 columns (Column 5 and Column 6) to be always shown in the child row and other columns should be responsive. Is there any solution for this problem?

Answers

  • rf1234rf1234 Posts: 2,957Questions: 87Answers: 417

    if you assign class="none" then the column is always shown in the child row.
    if you assign class= "all" the column is never shown in a child row but always in the parent row. Everyhting else is responsive if you've turned responsive on.

     <th class="all">Info</th>
     <th class="none">Fee</th>
    
This discussion has been closed.