row grouping only on certain sorts
row grouping only on certain sorts
First off great work on datatables!
I am looking at the row grouping example at http://www.datatables.net/examples/advanced_init/row_grouping.html
and this is close to what I am looking for, but not exact. I don't want a fixed sort or hidden column, and I only want to do row grouping if the table is sorted by the third column. I adjusted the example to group on the third column, but I can't figure how to test which column is being sorted. I have searched and thought maybe there would be something in oSettings?
Thanks,
Calvin
I am looking at the row grouping example at http://www.datatables.net/examples/advanced_init/row_grouping.html
and this is close to what I am looking for, but not exact. I don't want a fixed sort or hidden column, and I only want to do row grouping if the table is sorted by the third column. I adjusted the example to group on the third column, but I can't figure how to test which column is being sorted. I have searched and thought maybe there would be something in oSettings?
Thanks,
Calvin
This discussion has been closed.
Replies
[code]
if ( oSettings.aaSorting[0][0] != 2) {
return;
}
[/code]
Placed near the top of the fnDrawCallback function.
Calvin