fixed sort

fixed sort

jerry1970jerry1970 Posts: 12Questions: 0Answers: 0
edited May 2011 in General
Hi,

I am trying to make row groups, by making a fixed sorting column, preferrably hidden. For example:
A 1
A 2
A 3
B 1
B 2
B 3

Sorting on the numeric column would normally give you 1-1-2-2-3-3, but I want the first column to be sorted first, no matter what.

Next is to hide the first column and have a table wide cell that shows the contents of that first column (A or B in this case) in a different style.

Is this possible?

Thanks!

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    http://datatables.net/usage/options#aaSortingFixed :-)

    Allan
  • jerry1970jerry1970 Posts: 12Questions: 0Answers: 0
    Damn, how could I have missed that! Thanks Allan, sorry to post such a noob question... I guess I was looking in the wrong places...

    OK, what remains is the showing of a group row in a cell with colspan...

    Thanks!
  • jerry1970jerry1970 Posts: 12Questions: 0Answers: 0
    Oops...

    http://datatables.net/examples/advanced_init/row_grouping.html

    ;)

    This makes me using datatables even more! :D
This discussion has been closed.