Single Column Sorting
Single Column Sorting
Daveomania
Posts: 15Questions: 0Answers: 0
Hello,
I am trying to set up my datatable so when I click one column it sorts on that first and then on another. Example: Table has a Page column and a Line column. If I click Page it should fisrt give me Page 1's, and then sort by Line starting at 1.
If I am not making sense maybe I can explain a bit better if you need it.
I feel like I have to set this up in the aoColumns option, but I have not had any success.. nor have I figured out how to pin point 1 column using the fnSort method.
I really appreciate any and all help/suggestions.
Thanks!
Dave
I am trying to set up my datatable so when I click one column it sorts on that first and then on another. Example: Table has a Page column and a Line column. If I click Page it should fisrt give me Page 1's, and then sort by Line starting at 1.
If I am not making sense maybe I can explain a bit better if you need it.
I feel like I have to set this up in the aoColumns option, but I have not had any success.. nor have I figured out how to pin point 1 column using the fnSort method.
I really appreciate any and all help/suggestions.
Thanks!
Dave
This discussion has been closed.