I am having trouble because in a onCellSelect event of the jqgrid I want to change the image of a cell, for example once I click inside the cell I want to change the image like this:, the only thing I have archived It is changing once the grid load in each cell loads an image:
this is my code for loading the img in the grid:
{display: '', name : '', formatter: image}
function image(cellvalue, options, rowObject){
if(rowObject[5]== 1){
return "<span class='ui-icon ui-icon-plusthick'></span>";
}else{
return "<span class='ui-icon ui-icon-minusthick'></span>";
}
}
and my method of
onCellSelect: function() {
id = $("#list2").getGridParam('selrow');
},
how can I archieve that on a onCellSelect change the img of each cell?