本帖最后由 iamandycool 于 2013-11-12 12:49:22 编辑

解决方案 »

  1.   

    自己解决了            onCellSelect: function (rowid,iCol,cellcontent,e) {
                    GetAttrValCombo(rowid)
                }//动态生成下拉框
    function GetAttrValCombo(rowid) {
        $.ajax({
            type: "post",
            async: false,
            url: actionURL + "?action=GetAttrValCombo&AttrCode=" + $("#list").getRowData(rowid).AttrCode,
            success: function (data) {
                if (data != null) {
                    var jsonobj = eval(data);
                    var length = jsonobj.length;
                    str=""
                    for(var i=0;i<length;i++){ 
                        if(i!=length-1){ 
                            str+=jsonobj[i].ValCode+":"+jsonobj[i].ValValue+";"; 
                        }else{ 
                            str+=jsonobj[i].ValCode+":"+jsonobj[i].ValValue; 
                        } 
                    }
                    $("#list").setColProp('ValValue', { editoptions: { value: str} });       
                }
            }
        });