Jquery JQGrid - How to set alignment of grid header cells?

前端 未结 7 1924
面向向阳花
面向向阳花 2020-11-30 03:25

Is it possible to align grid column headers in jqgrid? eg align left right or center?

In the jqrid documents http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colm

7条回答
  •  醉梦人生
    2020-11-30 03:47

    If the format of your jqGrid table is colModel: [{name: 'ColumnName', index: 'ColumnIndex',...}], then just add the parameter align: 'center' in order to align it centered.

    For more details, see other functionalities possible on jqGrid.

提交回复
热议问题