Skip to content
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

skip ajax request on sort event if serverSideSorting is disabled #336

Merged
merged 1 commit into from
Sep 30, 2013

Conversation

camallen
Copy link
Contributor

Hi,

I am using the Ajax Pager with serverSideFiltering but not serverSideSorting. When i click a sort button the ajax pager is requesting a fresh copy of the data on each sortEnd event even if serverSideSorting is disabled. As the filters / page haven't changed and i am not sorting on the server then the data would not have changed, thus the extra ajax data request is redundant.

This patch will test if serverSideSorting is disabled and will not run the data ajax request on the sortEnd Event.

Note, It will still run ajax request on the filterEnd event and if serverSideFiltering has been enabled.

Mottie added a commit that referenced this pull request Sep 30, 2013
skip ajax request on sort event if serverSideSorting is disabled
@Mottie Mottie merged commit 1a5f6b6 into Mottie:master Sep 30, 2013
Mottie added a commit that referenced this pull request Oct 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants