How can I dynamically group data on a page?

How can I dynamically group data on a page?

opethgeekopethgeek Posts: 4Questions: 3Answers: 0
edited October 2014 in Free community support

I'm looking at the grouping information here (http://datatables.net/examples/advanced_init/row_grouping.html) and successfully grouped my data by hardcoding '5' in the api.column area.

Ideally what I'd like to do it pass the column # there; I'd like to have a dropdown on the page that the user can select, and what column they select from the dropdown is what we group by. Since this drawCallback is inside the table initialization, what's the best method to dynamically pass a column to group by - and does the table have to be destroyed and redrawn for this to work?

This discussion has been closed.