I’m loading all the data I need for the page as soon as it loads and I want to add a dropdownbox/set of buttons to change the sorting of the data depending on whatever was selected.
Since all the data I need was loaded already, it would be redundant to do a postback and get the same thing again. I think this is possible using javascript but I’m pretty bad at that. BTW I’m doing this on MVC.
so my questions are:
1) If it is possible, how is it done in javascript?
2) Is there another better way to display and refresh the data displayed instead of using tables?
Pure Javascript:
JQuery:
Table Sorter is pretty famous
Flexgrid is also another option, not just for sorting but for making tables/grids get great new features
Aee also 33 JavaScript Solutions for Sorting Tables for other jQuery and pure javascript options.