Posted 11 September 2019, 1:00 am EST - Updated 3 October 2022, 10:25 am EST
Hi!
I have a flexgrid that I use column groups in (see attached image). The number of columns per group is always 4 but the number of groups can vary from 1 - n. I want to color code cells in the grid based on max values for each column. But I find the itemFormatter() doesn’t work the same way in a grid with column groups as it does in grids without them. In my case, the itemFormatter() is called only 3 times despite there being well over 200 cells in the grid. Is there an override for itemFormatter() to use for formatting cells in grids with column groups? What’s the secret chant to get it to work?
In the code below, the cosole log shows (r = 0, c = 0), (r = 0, c = 0), and (r = 0, c = 1).
myGrid.itemFormatter = function (panel, r, c, cell) {
console.log('r = ' + r);
console.log('c = ' + c);
}
Thanks for your help!
Joe