I have a jqGrid where JSON data comes from server and I convert it to local data type later. Last column is populated with data, once all other data is loaded from server based on certain conditions. like
if ((cmgName.substr(-1) === "1") || (cmgName.substr(-1) === "2"))
$('#list').setCell(rowId, "Compliance", "Yes", {background: '#00FF00'});
While search works fine for other columns, it returns blank for last column for the first time. i.e. if I search for "No", at first it returns blank (0 records). After resetting, if I search for "No". grid returns correct results.
How do I ensure it works correctly for the first time as well. Is it related to creating index over the column or refreshing data?