KoGrid
KoGrid copied to clipboard
If sortInfo is passed in, sort by that column initially
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
:+1:, though something tells me this project is dead and this will never get done.
@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.