If combogrid remoteurl could be located to a local function or method, is it possible?
I want local filter in combogrid like remote url filter,but I don't want to visit the server url frequently,
local filter just locate the searchword in the full datagrid list,I want only show the filtered results in the panel by local filter model,
if remote url could be located to a local function or method, it will be solved.
Or anybody can provide another solution?
I tried another solution,that is put a onValidate event to combogrid and when i type something to query,i can get a new filtered results but how can i reload the combogrid data list? i need to change the datalist dynamiclly, is it possible?
this is the code:
$("#wldw").combogrid({
panelWidth: 500,
idField:'id',
textField:'fullname',
mode:'local',
data:fcombodata,
onValidate:function(f){
let fv = $("#wldw").combogrid('getText').trim();
fcombodata = [];
for(let i=0;i<combodata_cust.length;i++){
if(combodata_cust[i]['id'].indexOf(fv)>=0||combodata_cust[i]['fullname'].indexOf(fv)>=0){
fcombodata.push(combodata_cust[i]);
}
}
//$("#wldw").combogrid('loadData',fcombodata);
},
columns:[[
{field:'id',title:'ID',align:'center',width:80},
{field:'fullname',title:'Name',align:'center',width:240},
{field:'sword',title:'SearchWord',align:'center',width:80},
]],
});