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

前端 未结 7 1957
面向向阳花
面向向阳花 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:56

    see the source to find out the css that your grid refer to and then you can try this:

    setTimeout(function(){
       jQuery('.ui-th-column').css('text-align','center');
    },1);
    

提交回复
热议问题