{
field:'A',
title:'A',
align:'center',
width:'15%',
editor:{
type:'combobox',
options:{
url:'url',
queryParams:{
"param":"111",
},
dataType:"json",
valueField:'CODENM',
textField:'CODENM',
editable:false,
onShowPanel:function(){
var v = $(this).combobox(
'panel')[0].childElementCount;
if (v <= 10) {
$(this).combobox('panel')
.height("auto");
} else {
$(this).combobox('panel')
.height(200);
}
},
onChange:function(newValue,oldValue){
var row = $('#dccssgcs').datagrid('getSelected');
var rindex = $('#dccssgcs').datagrid('getRowIndex',row);
var name = $('#dccssgcs').datagrid('getEditor',{
index:rindex,
field:'B',
});
if(name){
var url="URL?PARAM="+newValue;
$(name.target).combobox('clear');
$(name.target).combobox('reload',url);
}
}
}
}
},
{
field : 'B',
title : 'B',
align : 'center',
width : '15%',
editor : {
type : 'combobox',
options : {
type : "post",
dataType : "json",
valueField : 'CODENM',
textField : 'CODENM',
editable : false,
onShowPanel : function() {
var v = $(this).combobox(
'panel')[0].childElementCount;
if (v <= 10) {
$(this).combobox('panel')
.height("auto");
} else {
$(this).combobox('panel')
.height(200);
}
},
onChange : function(newValue,
oldValue) {
}
}
}
},
field:'A',
title:'A',
align:'center',
width:'15%',
editor:{
type:'combobox',
options:{
url:'url',
queryParams:{
"param":"111",
},
dataType:"json",
valueField:'CODENM',
textField:'CODENM',
editable:false,
onShowPanel:function(){
var v = $(this).combobox(
'panel')[0].childElementCount;
if (v <= 10) {
$(this).combobox('panel')
.height("auto");
} else {
$(this).combobox('panel')
.height(200);
}
},
onChange:function(newValue,oldValue){
var row = $('#dccssgcs').datagrid('getSelected');
var rindex = $('#dccssgcs').datagrid('getRowIndex',row);
var name = $('#dccssgcs').datagrid('getEditor',{
index:rindex,
field:'B',
});
if(name){
var url="URL?PARAM="+newValue;
$(name.target).combobox('clear');
$(name.target).combobox('reload',url);
}
}
}
}
},
{
field : 'B',
title : 'B',
align : 'center',
width : '15%',
editor : {
type : 'combobox',
options : {
type : "post",
dataType : "json",
valueField : 'CODENM',
textField : 'CODENM',
editable : false,
onShowPanel : function() {
var v = $(this).combobox(
'panel')[0].childElementCount;
if (v <= 10) {
$(this).combobox('panel')
.height("auto");
} else {
$(this).combobox('panel')
.height(200);
}
},
onChange : function(newValue,
oldValue) {
}
}
}
},