quick column switching

quick column switching

ConorHigginsConorHiggins Posts: 9Questions: 0Answers: 0
edited January 2012 in General
Hi,

I am trying to figure out a way of quickly changing the columns used in a datatable or, to change the visibility quick of a series of columns.

I have been reading up on the API and came across the aoColumnDefs but there are no example of how to use, or an explanation of how to do that either.

Conor

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    There is an example of how to use bVisible at initialisation time with aoColumnDefs in the documentation: http://datatables.net/ref#bVisible .

    However, do you want to change the column visibility after the table has been initialised? Then fnSetColumnVis is the API method you want.

    Allan
This discussion has been closed.