Hi All, this is probably my first question here. I want to add background colors in my subgrid (Editable Grid View), I want to add different colors for the different columns, I am using the web resource as JS file, here is my code.
{
function formatColumn(rowData, userLCID) {
debugger;
var style = '<style> ';
style += '.wj-cells .wj-row div:nth-child(4) { background: red !important;}';
style += '.wj-cells .wj-row div:nth-child(5) { background: yellow !important;}';
style += '</style>'
document.body.innerHTML += style
}
}
It will not change when i publish my app. This script works when I run it on console. Please find me the method to do this, thanks
