Sort column by keypress

Sort column by keypress

PROpheTPROpheT Posts: 12Questions: 0Answers: 0
edited May 2011 in General
Hi,
I am not sure, if it is possible, but I want ability to change column sorting after press Ctrl+0, Ctrl+1, etc (where 0, 1... is column number). I dont want use the mouse and to click on each column.
Thanks.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Currently this isn't built into DataTables, although something along these lines might be included in future. For now, the answer is to simply have a keypress listener on 'document' and call the fnSort API method as you require for the keys that are pressed.

    Allan
This discussion has been closed.