I'm using SlickGrid with DataView and I'm trying to set a default sort column on my table. Is there a way to trigger the sort or set an option so the column is sorted on load?
On the latest version you could do this:
grid.setSortColumn("myColId",true); //columnId, ascending
You can also set multiple with setSortColumn*s*
See my solution here. This applies sort on a column initially without using Dataview.
Calling sort on slickgrid
I think it does what you want.
Btw since you are using Dataview. You can also give this a try. But I have not personally tried this.
dataview.reSort()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With