Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.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
Jquery 单元格中的JqGrid选择框_Jquery_Drop Down Menu_Jqgrid_Grid - Fatal编程技术网

Jquery 单元格中的JqGrid选择框

Jquery 单元格中的JqGrid选择框,jquery,drop-down-menu,jqgrid,grid,Jquery,Drop Down Menu,Jqgrid,Grid,我试图在特定单元格中设置一个选择框。我的复选框显示得很好,但是没有显示选择框 $('#list5').jqGrid({ datatype: "local", width: "100%", height: "100%", colNames:['Universe1','Connect String1', 'Report1', 'Object Type1','Path1','Owner1', '|', 'Universe', 'Select','Connect String', '

我试图在特定单元格中设置一个选择框。我的复选框显示得很好,但是没有显示选择框

$('#list5').jqGrid({ datatype: "local", width: "100%", height: "100%", colNames:['Universe1','Connect String1', 'Report1', 'Object Type1','Path1','Owner1', '|', 'Universe', 'Select','Connect String', 'CheckBox', 'Report', 'Object Type','Path','Owner'], colModel:[ {name:'universe1', index:'universe1', width:70},{name:'connect1',index:'connect1', width:120}, {name:'report1',index:'report1', width:90}, {name:'objType1',index:'objType1', width:50, align:"right"}, {name:'path1',index:'path1', width:50, align:"right"}, {name:'owner1',index:'owner1', width:100, align:"right"}, {name:'pipe',index:'pipe', width:10, align:"center"}, {name:'universe', index:'universe', width:70}, {name:'ship',index:'ship', width:90, editable: true, edittype:"select", formatoptions: {disabled : false}, editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}}, {name:'connect',index:'connect', width:120}, { name: 'airPost', width: 40, index: 'airPost', formatter: 'checkbox', align: 'center', //Checkbox editoptions: { value: "1:0" }, stype: 'select', editable:true, searchoptions: { value: "1:Yes;0:No" }, formatoptions: {disabled : false} }, {name:'report',index:'report', width:90}, {name:'objType',index:'objType', width:50, align:"right"}, {name:'path',index:'path', width:50, align:"right"}, {name:'owner',index:'owner', width:100, align:"right"} ], caption: "Grid", autowidth: true, viewrecords: true, footerrow: true, userDataOnFooter: true, data: mydata }); $('#list5').jqGrid({ 数据类型:“本地”, 宽度:“100%”, 高度:“100%”, colNames:['Universe1'、'Connect String1'、'Report1'、'Object Type1'、'Path1'、'Owner1'、'|'、'Universe'、'Select'、'Connect String'、'CheckBox'、'Report'、'Object Type'、'Path'、'Owner'], colModel:[ {名称:'universe1',索引:'universe1',宽度:70},{名称:'connect1',索引:'connect1',宽度:120}, {名称:'report1',索引:'report1',宽度:90}, {name:'objType1',index:'objType1',宽度:50,对齐:“right”}, {名称:'path1',索引:'path1',宽度:50,对齐:“right”}, {名称:'owner1',索引:'owner1',宽度:100,对齐:“右”}, {名称:'pipe',索引:'pipe',宽度:10,对齐:“中心”}, {名称:'universe',索引:'universe',宽度:70}, {名称:'ship',索引:'ship',宽度:90,可编辑:true,编辑类型:“选择”,格式选项:{禁用:false},编辑选项:{值:“FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX”}, {名称:'connect',索引:'connect',宽度:120}, {名称:'airPost',宽度:40,索引:'airPost',格式化程序:'checkbox',对齐:'center',//checkbox editoptions:{value:“1:0”},stype:“选择”,editable:true,searchoptions:{value:“1:Yes;0:No”},formatoptions:{disabled:false}, {名称:'report',索引:'report',宽度:90}, {名称:'objType',索引:'objType',宽度:50,对齐:“right”}, {名称:'path',索引:'path',宽度:50,对齐:“right”}, {名称:'owner',索引:'owner',宽度:100,对齐:“right”} ], 标题:“网格”, 自动宽度:正确, viewrecords:是的, 是的, userDataOnFooter:true, 数据:mydata });
可能是误会。仅当单元格处于编辑模式时,才会在单元格中看到“选择框”。例如,如果在网格定义中包含两个附加参数,则可以在本地jqGrid中包含支持

cellEdit: true,
cellsubmit: 'clientArray'
您也可以使用


我不确定
mydata
数组中的数据是什么样子的。可能需要添加到“ship”列的定义中。

谢谢我让它正常工作了。没有将cellEdit、cellsubmit:和editurl:添加到网格中是一个问题。

谢谢,我一直面临着同样的问题