Hi Support Team,
Could you please look into why I can no longer use the previous "equal" condition that ignores time in v10.1.0? For some reason, it shows no rows even though there is data in the grid that matches the applied filter.
The issue can be reproduced by modifying the "Order DateTime" column to use the "equal" condition filter in version <= v7 and setting the grid to use fmtDate: "dd-mmm-yyyy".
{
title: "Order DateTime", minWidth: "230", dataIndx: "OrderDate", dataType: "date",
//exportRender: true,
filter: {
crules:[{condition: "equal"}],
conditions: {
equal: {
compare: function(cd, val){
//debugger;
cd = new Date(cd);
val = new Date(val);
//console.log(val);
//ignore time.
if(cd.getDate()==val.getDate() && cd.getMonth()==val.getMonth() && cd.getYear()==val.getYear()){
return true;
}
}
}
}
},
filterFn: function(ui){
///debugger;
if(ui.condition != 'range'){
return {
//override the column format
format:'M dd, yy'
}
}
}
},
Please advise. Thanks!