grouping and hiding/ expanding columns

grouping and hiding/ expanding columns

danbuntudanbuntu Posts: 11Questions: 2Answers: 0
edited July 2011 in General
Hello

I want to be able to group a set of columns hide them. Then when a user clicks on a button have the columns expand and become visible. For example have a number of courses with pass/ fail and when clicked on expand the course to show the number of units each one is made up of.

Does anyone have a working example of this that I might be able to crib code from?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Can you just loop over a call to fnSetColumnVis ( http://datatables.net/api#fnSetColumnVis ) to make the columns you want visible / hidden?

    Allan
  • danbuntudanbuntu Posts: 11Questions: 2Answers: 0
    more then likely. I'm pretty new to javascript though so it's all a learning curve at the moment. Hence the hope of an example.
This discussion has been closed.