Skip to content
Advertisement

Set a default sort column in SlickGrid

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?

Advertisement

Answer

On the latest version you could do this:

grid.setSortColumn("myColId",true); //columnId, ascending

You can also set multiple with setSortColumn*s*

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement