I have a slickgrid that displays a limited amount of data to the user. If there is data in a hidden column, I want the row to be bolded. I am not using a dataview, thus the getItemMetadata function is not available. I've tried this from another SO post:
var selectedRow = gridB.getSelectedRows();
item["Filter"] = filter;
var obj = {};
obj[selectedRow]={Name:"highlight"};
gridB.setCellCssStyles("highlight",obj);
gridB.updateRow(item);
gridB.invalidateRow(selectedRow);
gridB.render();
But it does nothing. Then I tried this from yet another post:
var selectedRow = gridB.getSelectedRows();
var item = gridB.getDataItem(selectedRow);
item["Filter"] = filter;
var modifiedCells = {};
modifiedCells[selectedRow][1] = "highlight";
gridB.setCellCssStyles("highlighted", modifiedCells);
gridB.updateRow(item);
gridB.invalidateRow(selectedRow);
gridB.render();
which just threw errors.
How can this be accomplished when not using a dataview?