【问题标题】:How to increase the row number column width in jqGridjqGrid中如何增加行号列宽
【发布时间】:2013-04-26 11:58:40
【问题描述】:

在我的 JQuery Grid 中,我有一个名为 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
});

当我将参数 rownumbers 设置为 true 时,我会获取网格表中每一行的行号。如何增加行号列的宽度?我尝试更新 CSS 样式,但没有成功。

谁能告诉我如何增加jqGrid中行号列的宽度?

【问题讨论】:

    标签: javascript jquery jqgrid


    【解决方案1】:

    您可以通过设置 rownumWidth 属性来控制显示行号列的宽度(默认为 25)。

    来自http://www.trirand.com/blog/phpjqgrid/examples/appearance/rownumbers/default.php

    【讨论】:

    • @Vijay:你应该"accept" 解决你的问题的答案。
    • @Vijay 事实上,是胡萝卜让我们想要更多!
    猜你喜欢
    • 2012-01-14
    • 1970-01-01
    • 2019-03-06
    • 2013-02-19
    • 2018-02-11
    • 2016-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多