0

By default free jqGrid shows arrows only on a sorted column. I need to show arrows always. I can alter CSS like

  .ui-jqgrid .ui-jqgrid-sortable .s-ico {
    display: inline-block !important;
  }

, but I suspect there is an option for this.

enter image description here

AHeavyObject
  • 562
  • 1
  • 7
  • 18
  • 1
    You expose "I expect a option' - but did you have read the docs? There is a option for this purpose **viewsortcols** (need to read it - it is not a single value). You just need to find it in free jqGrid documentation. If it is not available you can find it in Guriddo jqGrid JS [docs here](http://www.guriddo.net/documentation/guriddo/javascript/user-guide/basic-grid/) – Tony Tomov Aug 31 '20 at 08:10
  • Thanks. That's it. I didn't manage to find docs for free jqGrid except https://free-jqgrid.github.io/. No even list of possible options there. And could not found the option investigating the code. But it seems the doc's you have provided work for free jqGrid at least partially. – AHeavyObject Aug 31 '20 at 08:27
  • 1
    free jqGrid is a clone, mostly it should be compatible with Guriddo jqGrid. – Tony Tomov Aug 31 '20 at 10:31

1 Answers1

0

jqGrid has viewsortcols option (see old documentation), which is supported by free jqGrid too. The default value of the option is viewsortcols: [false, "vertical", true]. The first value of viewsortcols array specifies whether the sort icons should be shown always or not. Thus to implement your requirements you need just add the option

viewsortcols: [true, "vertical", true]

See https://jsfiddle.net/OlegKi/L417gcwf/72/ for example.

If you have an interest for more advanced customizing features of free jqGrid you can find in "UPDATED" part of the answer for example.

Oleg
  • 220,925
  • 34
  • 403
  • 798