Difference between aoColumnDefs and aoColumns in datatable jquery plugin?
Asked
Active
Viewed 3,961 times
1 Answers
5
aoColumns requires you to set each column individually (every column is an entry in the array) aoColumnDefs allows you to set attributes of just some columns, and you can set the same attributes on multiple columns at once (so, you can mark column 2 and 5 to hidden using one entry in the array)

Garr Godfrey
- 8,257
- 2
- 25
- 23
-
it might also be important to say aoColumn defines the columns, whereas aoColumnDefs just sets the attributes of columns that are otherwise defined, usually from the data source. – Garr Godfrey Jun 08 '17 at 02:11