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

前端 未结 7 1907
面向向阳花
面向向阳花 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 04:03

    You can simply add the align attribute to your Column in ColModel:

    colModel: [
              {name: 'MyColumn', index: 'MyColumn', align: 'center'}
          ],
    
    0 讨论(0)
提交回复
热议问题