Topic: Datatable hide column but use as default order

panikingginoo free asked 5 years ago


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


Joshua Arzt free answered 5 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 5 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 5 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

  • ForumUser: 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