Developer Strange
Developer Strange

Reputation: 2198

Difference between aoColumnDefs and aoColumns

Difference between aoColumnDefs and aoColumns in datatable jquery plugin?

Upvotes: 6

Views: 4124

Answers (1)

Geoduck
Geoduck

Reputation: 9009

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)

Upvotes: 5

Related Questions