KoGrid icon indicating copy to clipboard operation
KoGrid copied to clipboard

If sortInfo is passed in, sort by that column initially

Open bdukes opened this issue 10 years ago • 2 comments
trafficstars

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

bdukes avatar Jun 19 '15 19:06 bdukes

:+1:, though something tells me this project is dead and this will never get done.

kohenkatz avatar Jan 11 '16 18:01 kohenkatz

@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.

crissdev avatar Jan 11 '16 19:01 crissdev