Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jqgrid在Jquery SimpleModel中工作,但我看不到列标题名称_Javascript_Jquery_Jqgrid_Simplemodal - Fatal编程技术网

Javascript jqgrid在Jquery SimpleModel中工作,但我看不到列标题名称

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',

当我在Jquery SimpleModel中使用jqgrid时,它可以工作,但我看不到列标题名(colNames)。行显示正常,但没有列标题,您知道这是什么原因吗

$("#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有关。。。基本上,我们需要更多关于您当前设置的信息。