Skip to main content

Is it possible to have the sorting of a table by column run on the client side rather than querying the server? Like how you can select to have the table search run on the client rather than going to the server?

My actual requirement is to sort a table by a column but preserve row selections - if there’s an option I’m missing that handles the above, preserving selections whilst sorting may already be handled…

Hi, I performed a quick test and you are correct in that selected rows do not stick across sorts. We’ll need others more informed than I to chime in.


Yup. Same here. Tested yesterday.


Gary this is not currently possible.  Sorts and filters requery the model,  retrieving appropriate data from the server.  This action  removes the selections from any rows.  

If you change your search method to “client side” selections are retained.  I’m guessing we could add that sort of option in field sorts.  The problem is that the sorting would not retrieve any new data from the server - which seems appropriate in a search scenario,  but more problematic in a sort scenario.   We’ll kick it around,  but no promises… 



Thanks for the input everyone! I have an idea for a workaround, if I can get it developed, I’ll try and share it back with the Community.


That would be awesome! 


Gary,

Did you ever end up developing the workaround?


I think a good workaround could be to use a javascript library called tinysort http://tinysort.sjeiti.com/