I had a jqGrid and I had put a datepicker on the search column. When I click the datepicker, it come out and allow me to choose any date I want. However, after date selection it wont help me to filter my result. But if I type the same date on the column jqGrid will do the filtering for me.
Here is my code.
{name:columnArr4[3], index:columnArr4[3], width:106, sortable: true, fixed:true, resizable:false, // expiry date
formatter: function (cellvalue, options, rowObject)
{
celVal = '-';
if (cellvalue && cellvalue.replace(/\s/g, '').length>0){
celVal = cellvalue;
}
return celVal;
},
search:true, stype:'text', searchoptions: { dataInit: function(el) {
$(el).datepicker({
dateFormat: 'yy-mm-dd'
});
}
}
},