I have a combogrid that works fine with the loader when we type text into it
how can I prepopulate the box with the lookup text to start \ execute the loader function so the results will appear in the same combogrid
$('#txtUserLookup').combogrid({
prompt: 'Enter Name to Lookup',
idField: 'id',
textField: 'fullname',
url: '/users',
method: 'get',
mode: 'remote',
columns: [[
{field:'id',title:'id',width:80},
{field:'fullname',title:'fullname',width:120},
{field:'title',title:'title',width:120}
]],
fitColumns: true,
onBeforeLoad: function(param){
if (!param.q || param.q.length<2) return false;
},
loader: function(param,success,error){
$.ajax({
url: '/users',
data: {search: param.q},
success: function(result){
success(result.data);
}
});
},
onSelect: function(index, row) {
//blah blah blah
}
});