I tried to make combogrid in edatagrid with onChange remote searching base on topic
http://www.jeasyui.com/forum/index.php?topic=478.0http://www.jeasyui.com/forum/index.php?topic=1580.msg3523#msg3523when I reload callback data, how do I get the grid id combogrid ? actually we do not define the combogrid ID
var unitEditor = {
type:'combogrid',
options:{
panelWidth:260,
idField:'id',
textField:'unit_name',
mode:'remote',
required:true,
columns:[[
{field:'id',title:'id',width:60},
{field:'unit_name',title:'unit',width:200}
]],
onSelect: onSelectGrid,
onChange:function(value){
$('#???').datagrid('load',{ // how get current combogrid ID ???
find: value
});
console.log(value);
},
filter: function(q,row){
var opts = $(this).combogrid('options');
return row[opts.textField].toUpperCase().indexOf(q.toUpperCase()) >= 0;
},
data: itemList
}
I appreciate and thanks for help.