personGrid.on("cellbeginedit",function(e){
var row=e.record;
var id = row.ID;
var actions="${basePath}showPersonDepartment.action?userId="+id;
$.ajax({
url:actions,
type:'POST',
dataType:'json',
success : function(data) {
//这个里边该怎么处理才能把List<Map<String,String>>数据在部门的combobox中显示出来?
}
});
})作者: dforce 时间: 2014-11-19 16:55:15
大隋炀帝 发表于 2014-11-19 16:51
personGrid.on("cellbeginedit",function(e){
var row=e.record;
var id = row.ID;
var editor=e.editor
success里面
editor.setData(data) //data需要后台返回的数组数据
另外 ajax设置同步