I have tried with same code.
See the code below :
<select id="cg" name="cg" class="easyui-combogrid" style="width:250px; padding-right:10px;"
data-options="panelWidth: 500,
idField: 'secode2', textField: 'section',
url: 'getSection.php',
columns: [[
{field:'secode2',title:'SeCode',width:60,align:'right'},
{field:'secode',width:0,hidden:true},
{field:'section2',width:0, hidden:true},
{field:'section',title:'Section',width:260},
{field:'deptname',title:'Department',width:200}
]],
required:true,
and here is the code for filtering :
$.extend($.fn.combogrid.defaults, {
filter: function(q, row){
var opts = $(this).combogrid('options');
return row[opts.textField].toLowerCase().indexOf(q.toLowerCase()) >= 0;
}
});
But it does not filter as in case of combobox works, it shows all the rows, only it highlights the first occurence of the keypressed string.