Thanks for the quick reply... here are the relevant pieces of the code. Hope you can help@
<table id="dg" class="easyui-datagrid" title="..." style="width:1050px;height:auto" sortName="partnumber" sortOrder="asc" rownumbers="true" pagination="true">
<thead>
<tr>
<th data-options="field:'inventoryid',width:80">Inventory ID</th>
<th data-options="field:'lotstatusid',width:40,align:'center',editor:'text'">Status</th>
<th data-options="field:'partnumber',width:150,align:'left',editor:'text',sortable:'true'">Part Number</th>
</tr>
</thead>
<!--- This function is called to make an ajax call to get user details --->
$('#dg').datagrid({
iconCls: 'icon-edit',
remoteSort: false,
singleSelect: true,
toolbar: '#tb',
url:'user.cfc?method=getUserDetails',
type: 'get',
dataType:'json',
onClickRow: onClickRow
});
$(function(){
var dg = $('#dg').datagrid();
dg.datagrid('enableFilter', [{
field:'status',
type:'combobox',
options:{
panelHeight:'auto',
data:[{value:'',text:'All'},{value:'A',text:'A'},{value:'N',text:'N'}],
onChange:function(value){
if (value == ''){
dg.datagrid('removeFilterRule', 'status');
} else {
dg.datagrid('addFilterRule', {
field: 'status',
op: 'equal',
value: value
});
}
dg.datagrid('doFilter');
}
}
}]);