Maintaining Sorting

Maintaining Sorting

freslerfresler Posts: 7Questions: 2Answers: 0
edited March 2012 in General
Is there a way to capture which column the user clicked on for sorting and it's direction?

Replies

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    You can use one of:

    1. Add a click listener in the header and read fnSettings().aaSorting

    2. Listen for the 'sort' event and use aaSorting from the settings object

    3. Use an fnDrawCallback function and check the aaSorting param from the settings object - which will occur on each draw.

    Allan
  • freslerfresler Posts: 7Questions: 2Answers: 0
    edited April 2012
    The fnDrawCallback and aaSorting method worked great. Thanks!
This discussion has been closed.