row grouping only on certain sorts

row grouping only on certain sorts

calvinccalvinc Posts: 2Questions: 0Answers: 0
edited February 2011 in General
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

Replies

  • calvinccalvinc Posts: 2Questions: 0Answers: 0
    Ok, I finally figured it out. For my purposes the following is adequate:
    [code]
    if ( oSettings.aaSorting[0][0] != 2) {
    return;
    }
    [/code]
    Placed near the top of the fnDrawCallback function.
    Calvin
This discussion has been closed.