-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Including sort order parameter in ajaxUrl #155
Comments
just pass the param to your app that serves up the content? |
Yup that's what I want to do but there is a little bit of work to get it working. The library would have to know about it. |
Hmm, so you'd need the column and direction (0 = desc, 1 = asc) added? So the URL would have to look something like this? // sortList
[ [0,0], [1,0] ]
// url
col[0]=0&col[1]=0 |
Yup, something like that |
Ok cool. I'll look into add something like this soon. |
Hi @trevorbernard! Tell me what you think of the parameter I added. Basically you add this to the url "http://mydatabase.com?page={page}&size={size}&{sortList:xyz}" that has page number of "http://mydatabase.com?page=2&size=10&xyz[2]=0&xyz[3]=0" If no sort is applied to the table, the url string will only return parameter name: "http://mydatabase.com?page=2&size=10&xyz" |
Looks good. I won't have time to test it out until tomorrow morning though. |
You guys are on this, awesome. I've been looking into extending the AJAX portion of the pager plugin to handle more REST-style parameters and sorting. Glad to see there is other interest in this as well. |
I'm running into an issue where I want sort to be applied on the whole dataset and not just the particular page I'm on when I'm using ajax and pagination.
The text was updated successfully, but these errors were encountered: