日期:2014-05-17  浏览次数:20911 次

JQuery easyui的问题
页面中有一个DataGrid.里面有一列为comboBox,格式如下:
{field : 'tch',title : '教师',width : 100,align : 'center',
    formatter : function(value, row) {
if (glbTchList == null) {
    return "";
} else {

    for (var i = 0; i < glbTchList.length; i++) {
// 返回当前选中数据的名字
if (glbTchList[i].codeDesc == row.val)
{                                 
    return glbTchList[i].codeDesc;
}
    }
    // 返回当前value
    return value;
}
    },
    editor : {
type : 'combobox',
options : {
    data : glbTchList,
    valueField : 'code',
    textField : 'codeDesc',
    editable : false,
    required : true,
    onSelect : function(record) {
    }
}
    }
}

我现在想在onClickRow事件事,得到这列的code值,代码应该怎么写?求助
jQuery easyui ComboBox

------解决方案--------------------
onClickRow: function(rowindex, rowData)
{
    
    //$.each(rowData, function(k, v) { alert(k+":"+v); });
    
},