Hi Tsanna,
I tried below javaScript code to achieve the desired requirement, in respective View(Index.cshtml):
function changeCellColor() {
debugger;
var gridId = evt.target.id; //getting gridId of respective controller
if(gridId!=null && gridId!=undefined)
{
var column = grid.igGrid("columnByKey","EXPD_HDR_VARIANCE_REASONS"); //getting column key
$(gridId).find("td[aria-describedby=" + column + "]").css("background-color", "red"); //code to change background color
}
}
In above code, I am able to get the gridId, columnKey but please let me know how to pass the specific cellKey to change specific CELL background color, in my above code ?
Also, when I am trying the same code to change the color of column(just to test the code) it never change the background color.
Please let me know what is wrong in my code ?
Looking forward for the reply. Thanks in advance.