Datatable hide column but use as default order


Topic: Datatable hide column but use as default order

panikingginoo asked 6 years ago

I couldn't find any api on how to hide column, can someone help me, Thanks.


Joshua Arzt answered 6 years ago

I do something like this:

/* Hide first column */
.dataTables_wrapper tr td:nth-child(1), 
.dataTables_wrapper th:nth-child(1) {
    display: none;
}

Konrad Stępień staff commented 6 years ago

Hi,

I am glad that you have solved your problem. We can help you with some other problems?

Your regards, Konrad.


Anna Morawska staff answered 6 years ago

Hi there,

there is no API which lets you do this, but you can write your own CSS rules to achieve that.

Best, Ania


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: Asus Zenfone Max Pro M1
  • Browser: Google Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No
Tags