Javascript jqgrid在Jquery SimpleModel中工作,但我看不到列标题名称
当我在Jquery SimpleModel中使用jqgrid时,它可以工作,但我看不到列标题名(colNames)。行显示正常,但没有列标题,您知道这是什么原因吗Javascript jqgrid在Jquery SimpleModel中工作,但我看不到列标题名称,javascript,jquery,jqgrid,simplemodal,Javascript,Jquery,Jqgrid,Simplemodal,当我在Jquery SimpleModel中使用jqgrid时,它可以工作,但我看不到列标题名(colNames)。行显示正常,但没有列标题,您知道这是什么原因吗 $("#basic").modal({ onShow: function () { $("#grid").jqGrid({ data: items, datatype: 'local', width: 650, height: 'auto',
$("#basic").modal({
onShow: function () {
$("#grid").jqGrid({
data: items,
datatype: 'local',
width: 650,
height: 'auto',
rowNum: 25,
colNames: [
' '
, ' '
, 'Column 3'
, 'Column 4'
],
colModel: [
{
name: 'IsSelected', index: 'IsSelected', width: 30,
align: 'center',
formatter: 'checkbox',
editoptions: { value: '1:0' },
formatoptions: { disabled: false }
}
, { name: 'col1', index: 'col1'}
, { name: 'col2', index: 'col2'}
, { name: 'col3', index: 'col3', width: 200}
, { name: 'col4', index: 'col4'}
]
});
拉小提琴。它可能与CSS/HTML有关。。。基本上,我们需要更多关于您当前设置的信息。