Use of aaSorting makes a column need to be clicked twice

Use of aaSorting makes a column need to be clicked twice

tristanvanbokkemtristanvanbokkem Posts: 19Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
Allan,

Basically I have the same issue as mentioned here: http://www.datatables.net/forums/discussion/865/aasorting-problems/p1
But since that topic is closed I will repost here.

I noticed that when I use aaSorting ("aaSorting": [[15,'asc']],) I am forced to click column 15 twice when I want to resort it again manually.
Also, the arrow indicators are gray and not set to asc (up).

What is causing this?

Im at DT 1.9.4.

Replies

  • tristanvanbokkemtristanvanbokkem Posts: 19Questions: 0Answers: 0
    Allan,

    Bump, do you have any idea what is causing this?
  • allanallan Posts: 63,389Questions: 1Answers: 10,450 Site admin
    Please link to a test case showing the issue: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Without a way to reproduce the issue I can't offer any help and a simple test case shows that it should be working:
    http://live.datatables.net/asaxoj/edit#javascript,html

    Allan
  • tristanvanbokkemtristanvanbokkem Posts: 19Questions: 0Answers: 0
    I cannot test it as ColVis is not active there. I have set it to column 15 to be sorted asc. but there are columns before column 15 that are hidden by default. If I paste my code there it works if I set it to column 3 orso. That triggered me to test it in my code live as well. I have set it to column 3 now and it does work now. So I think ColVis or bVisible is messing up the sorting somehow.
  • tristanvanbokkemtristanvanbokkem Posts: 19Questions: 0Answers: 0
    Allan,

    How can I test it in de sandbox with ColVis?
  • allanallan Posts: 63,389Questions: 1Answers: 10,450 Site admin
    [code]

    [/code]

    Allan
This discussion has been closed.