I found that it's not possible to change data on other pages by using setRowData, and I found that the only way is using a getGridParam -> change data -> setGridParam(newdata).
So question, is it possible to setGridData(myData) with css styles ONLY FOR THE CELL?
I've tried to do setCell({ some css }) when i do paging, but it removes these css styles.
Previous code:
onPaging: function() {
var rows = self.jqgridHTML.getRowData();
var rowNum = rows.length;
var collection = self.model.get('collection');
console.log(rowNum);
for (var i = 0; i < rowNum; i++) {
var alarmData = rows[i];
//var alarm = collection.get(alarmData['name']);
var alarm = self.lookuptable[alarmData['name']];
var color = alarm['alarm'].attributes['color'];
self.jqgridHTML.jqGrid('setCell', i + 1, 3, '', {
'background-color': color
});
}
console.log('page changed');
}
Thanks in advance!