最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to increase the row number column width in jqGrid - Stack Overflow

programmeradmin2浏览0评论

In my JQuery Grid, I have a parameter named rownumbers.

jQuery("#dateInfo").jqGrid({   
url : theURL,
datatype : "json",
sortable: false,
colNames:['Date & Time'],
colModel:[{name:'arrivalTime',index:'arrivalTime', sortable: false, align:'left', width:200, editable:true,editoptions:{size:30}}],
pager : '#dateInfojsonmap',
rownumbers: true,     
viewrecords: true
});

When I set the parameter rownumbers to true, I get the row numbers for each row in the grid table. How can I increase the width of the row number column? I tried to update the CSS style, but it hasn't worked.

Can anyone tell me how to increase the width of the row number column in the jqGrid?

In my JQuery Grid, I have a parameter named rownumbers.

jQuery("#dateInfo").jqGrid({   
url : theURL,
datatype : "json",
sortable: false,
colNames:['Date & Time'],
colModel:[{name:'arrivalTime',index:'arrivalTime', sortable: false, align:'left', width:200, editable:true,editoptions:{size:30}}],
pager : '#dateInfojsonmap',
rownumbers: true,     
viewrecords: true
});

When I set the parameter rownumbers to true, I get the row numbers for each row in the grid table. How can I increase the width of the row number column? I tried to update the CSS style, but it hasn't worked.

Can anyone tell me how to increase the width of the row number column in the jqGrid?

Share Improve this question edited Apr 26, 2013 at 13:15 Mark 3,1234 gold badges23 silver badges31 bronze badges asked Apr 26, 2013 at 11:58 It's meIt's me 1,1156 gold badges15 silver badges31 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

You can control the width of the show row numbers columns by settings the rownumWidth property (default is 25).

from http://www.trirand./blog/phpjqgrid/examples/appearance/rownumbers/default.php

发布评论

评论列表(0)

  1. 暂无评论