在datagird表格编辑的时候用了combobox,如何对combobox进行赋值

提问 已结 3 6887
悬赏:20飞吻
代码如下:
<table style="height: 200px" data-toggle="topjui-datagrid"
data-options="id: 'RoleDg',
fitColumns:true,
rownumbers:false,
remoteSort:false,
pagination:false,
scrollbarSize:'0',
data:[{ID:'1',LName:'自定义字段',Types:'文本'},{ID:'2',LName:'自定义字段1',Types:'文本'}],
url: '#'
">
<thead>
<tr>
<th data-options="field:'LName',title:'列名称',align:'left',halign:'center',width:40,editor:'text'"></th>
<th data-options="field:'Types',title:'类型',align:'center',halign:'center',width:40,editor:'combobox'"></th>
</tr>
</thead>
</table>
回帖
回帖须知