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

If sortInfo is passed in, sort by that column initially #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bdukes
Copy link

@bdukes bdukes commented Jun 19, 2015

Per the documentation, passing sortInfo in the options should set the default sorting state. However, nothing is looking at the value that is initially passed in.

This patch looks to see if the sortInfo has a field, when the grid is initialized. If so, it calls the sort method of that column. However, this sets the column direction, but the sorting is overwritten later during some other initialization. To combat that, I've wrapped the sort call in a setTimeout.

This fixes #244 and #74

@kohenkatz
Copy link

👍, though something tells me this project is dead and this will never get done.

@crissdev
Copy link
Member

@kohenkatz Please check the milestones and see how you may help in moving forward. The progress is slow but hopefully the number of contributors will grow. Any help you can provide is welcome.

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.

sortInfo, what is the correct syntax, working example needed
3 participants