Skip to content

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