Signed numbers sorting - serverside

Signed numbers sorting - serverside

mansouralexmansouralex Posts: 3Questions: 1Answers: 0
edited April 2020 in Free community support

Hey,

I'm using the "signed-num" plugin but it's not working as expected.

Does this plugin work in the case of server-side mode?

Thanks.

Answers

  • kthorngrenkthorngren Posts: 21,170Questions: 26Answers: 4,922

    Sorting and searching plugins are for client side processing only. Your server scrip tis responsible for sorting the signed numbers.

    Kevin

  • mansouralexmansouralex Posts: 3Questions: 1Answers: 0
    edited April 2020

    Thanks for your quick answer Kevin. I switched the datatable to client-side processing now. But when pressing that column nothing happens other than the arrow direction change, and this only happens when I apply "signed-num" type to the column.

    Do I miss something?

  • kthorngrenkthorngren Posts: 21,170Questions: 26Answers: 4,922

    Without seeing it the problem its hard to say. Did you load the JS code? Do you get errors in the browser's console?

    Can you post.a link to your page or a test case showing the issue?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • mansouralexmansouralex Posts: 3Questions: 1Answers: 0

    Yes the JS code loaded just fine, and no errors in the console. On the other hand, if I comment line: 58 - 60 then the sorting on that column will work again.

    Here is the snippet on GitHub: https://github.com/mansouralex/datatable-debugging/blob/master/dt

  • kthorngrenkthorngren Posts: 21,170Questions: 26Answers: 4,922
    edited April 2020

    Without seeing the actual data and issue its hard to say. Please provide running example that shows the issue using http://live.datatables.net/ .

    On the other hand, if I comment line: 58 - 60 then the sorting on that column will work again.

    Then why do you need the plugin?

    Kevin

This discussion has been closed.