Thanks for the reply. How do I do it in the combogrid? This is the one that causes the error.
<input name="feeinfo" id="ipBox" class="easyui-combogrid"
data-options="panelWidth:800, mode:'remote', method:'get', pagination:true,
idField:'id', textField:'name', hasDownArrow:true, striped:true,
prompt:'Type to search..', url:'Data/list',
columns: [[
{field:'id',title:'<b>Id</b>', halign:'center', align:'center', width:40,sortable:true},
{field:'name',title:'<b>Name</b>', halign:'center', align:'left', width:120,sortable:true},
]], fitColumns: true, panelHeight:250,
onSelect:function(index, row) {
showInfo(row.id);
$('#ipBox').combogrid('clear');
},
panelEvents: $.extend({}, $.fn.combogrid.defaults.panelEvents, {
mousedown: function(){}
}),
onHidePanel:function(index,row){
$(this).combogrid('close');
$('#ipBox').combogrid('clear');
}, emptyMsg:'<span style=color:red>No Data...</span>'" style="width:100%; height:35px;">
I did try with the following but it does not work:
$(function(){
$('#ipBox').combogrid({
onBeforeLoad: function(param){
var g = $('#ipBox').combogrid('grid');
var pager = g.datagrid('getPager');
}
});
});