• In order to get my columns to sort correctly, I added the plugin for currency that Tobias put added a while back, as well as a plugin for formatted numbers. I can get it to work with a single column, but don’t know how to add multiple sTpyes to the custom commands section.

    I use this “aoColumnDefs”: [ { “sType”: “currency_sorting”, “aTargets”: [ “column-7” ] } ] and it works. Or if i use “aoColumnDefs”: [ { “sType”: “formatted-num”, “aTargets”: [ “column-6” ] } ] it also works. How can i get them both to work?

    Please help

    http://ww.wp.xz.cn/extend/plugins/wp-table-reloaded/

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

    (@tobiasbg)

    Hi,

    according to the DataTables documentation at http://datatables.net/usage/columns, you can simply put in a list of CSS class names, like

    [ "column-6", "column-7" ]

    Regards,
    Tobias

    Thread Starter nermal

    (@nermal)

    Thanks for your quick response Tobias. I think I’m still confused. I’m trying to use “aolColumnDefs”: to define two different columns with two different sTypes. putting [ “column-6″,”column-7” ] seems like it would work if i was applying the same sType to both of them.

    I’m sure I’m still missing something simple.

    If you get a chance could you show me how to list multiple custom commands. Perhaps that’s the part i don’t get.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    oh, sorry. Then I misunderstood you…

    According to the DataTables documentation at http://datatables.net/usage/columns, you can then simply do this:

    "aoColumnDefs": [ { "sType": "currency_sorting", "aTargets": [ "column-7" ] }, { "sType": "formatted-num", "aTargets": [ "column-6" ] } ]

    Regards,
    Tobias

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

The topic ‘[Plugin: WP-Table Reloaded] WP-Table reloaded tables not sorting correctly’ is closed to new replies.