我试图构建简单的选择框insdie我的jqgrid单元格中有选择选项,过去几天我看了很多,但大多数答案都没有让我在这里找到我的js代码:
$('#ImageModel').html( '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="display" id="example"></table>' );
$("#example").jqGrid({ //set your grid id
url: GlobalConfig.clientMangerUrl,
datatype: 'json',
styleUI : 'Bootstrap',
colNames:['Image Name','Image Path','myname'], //define column names
colModel:[
{name:'ImageName', key: true},
{name:'ImagePath'},
{name:'Rois', edittype:'select'},//****i tried alot but nothing works i just dont know, Rois is a string array**
],**
//pager: '#ImageModel', //set your pager div id
caption:"jqGrid Example", //title of grid
});