bStateSave and aaSorting not compatible?

bStateSave and aaSorting not compatible?

rowelrowel Posts: 11Questions: 0Answers: 0
edited November 2013 in General
Hi Allan, first of all... just want to say DataTables is awesome. Thanks for providing this to the community.

I have a question.

It seems bStateSave and aaSorting are not compatible with one another?
with bStateSave enabled, the 1st column is always the default "sort by" column.... even though aaSorting has been explicitly set.

aaSorting only seems to work if I remove bStateSave.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Yes they are compatible. With state saving enable it should be that the aaSorting is applied the first time the user loads the table and then ignore thereafter since it is using the state stated state.

    Please link to a test case showing the issue if this is not working for you.

    Allan
  • rowelrowel Posts: 11Questions: 0Answers: 0
    Thanks Allan.

    The site is still in development, and still running on an internal private IP address.

    I'll clear my cookies and try again. I added the aaSorting sometime after enabling bStateSave.
This discussion has been closed.