I used cell select combo box, but I don't know how to use it,
I want column set like this
{ title: "회사 코드", width: "120", dataIndx: "Country",
cls: 'beige',
editor: {
type: 'select',
options: function(ui){
var itemCd = ui.rowData.itemCd;
alert(itemCd);
var formData = new FormData(document.getElementById('selectItem'));
$('#kitemCd').val(itemCd);
$.ajax({
type : "POST",
contentType: false,
processData: false,
url : "/OrderMng/odr05/selectContractList.do",
cache : false,
data : formData,
success : function(json,status){
var $cell = ui.$cell;
var dataIndx = ui.dataIndx;
var cls = ui.cls;
var compList = json.resultList;
var innerHtml = '<select id="example" name="'+dataIndx+'" multiple="multiple" class="'+cls+'">';
for(var i = 0;i<compList.length;i++){
innerHtml += '<option value="'+compList.compCd+'">'+compList.compNm+'</option>';
}
innerHtml += '</select>';
$cell.html(innerHtml);
}
});
}
}
},
but it can make select box but it dose not work select data, It that good idea how to make select box?