JQGrid中的动态下拉(选择框)

时间:2016-02-21 11:12:23

标签: javascript jquery jquery-ui jqgrid mvcjqgrid

我试图构建简单的选择框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    

});

我得到这样的东西: enter image description here

0 个答案:

没有答案