• I like the plugin.
    My table is a ranking table, where column 0 is Ranking (1, 2, 3, etc) and the rest is names, win, draw, etc… And column 7 is Points.

    I have table with 7 columns, i would like to luck or close column 0 and have the 6 other columns sorting after column 7 DESC.

    But can that be done and if, how ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m not yet really sure what you want to achieve.
    Can you maybe post a link to the page with table, so that I can get an idea on what you want to do?

    Regards,
    Tobias

    Thread Starter Tumling79

    (@tumling79)

    Sure…
    http://www.soulstones.dk/?p=270

    Its the “Final Standing” table.
    column 0 should never change it should always be ASC.
    And as default the table should be storting after column 6 as DESC.

    As it is now, the table is sorting after column 6 DESC, but that makes column 0 wrong… It should say 1,2,3,4 etc.

    I hope you can see what i mean?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, thanks for the link.
    So you actually want to fix column 0, so that it never changes, while the rest of the table can change depending on how someone sorts it. And by default, you want to sort DESC on column 6 (which you already do with the “Custom Command” that you have added).

    Now, I’m not really sure if this is possible with the DataTables library, but if it is, you are likely looking for the “bSortable” parameter, see http://datatables.net/usage/columns#bSortable

    To use that in your table, just extend the current “Custom Commands” to

    "aaSorting": [[6,'desc']], "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]

    Regards,
    Tobias

    Thread Starter Tumling79

    (@tumling79)

    it does not look like its working 🙁

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that’s too bad 🙁 Unfortunately, I don’t know a solution then 🙁 I suggest that you check out the DataTables website at http://www.datatables.net and maybe ask in their forums on whether such a feature is actually available or possible.

    Best wishes,
    Tobias

    Thread Starter Tumling79

    (@tumling79)

    I will do that…
    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: WP-Table Reloaded] A Sorting problem’ is closed to new replies.