{name:"untivalue", index:"untivalue",hidden:true,width:0,classes:'untivalue'},{name:"itemname", index:"itemname", width:100,align:"center",editable: true,edittype:"select", editoptions:{value:
function(url){
var html = ':;'; ajax.get(url, function(data){ for(i=0;i<data.length;i++){ if(i != data.length - 1){ html += data[i].value + ":" + data[i].name + ";"; }else{ html += data[i].value + ":" + data[i].name; } } }) return html; }, dataEvents:
function(classes){
var obj = [ { type: 'change', fn: function(e) { var $this = this;function ($this,classes){
var val = $this.value; $($this).closest('td').siblings('td.'+classes+'').html(val).attr('title',val) }, } } ] return obj; },}},
//单元格编辑
afterEditCell: function (rowId, cellname, value, iRow, iCol) {
bkcsubtable.afterEditCell_select() //应用select2样式
}
//行编辑
onSelectRow : function(rowId,status) {
jQuery(RecordGrid).jqGrid('editRow', rowId, true);
if(status){
bkcsubtable.afterEditCell_select() ; //应用select2样式 }}