cancel
Showing results for 
Search instead for 
Did you mean: 

Dyanmic cell background in iGrid

Former Member
0 Kudos

Hi,

I want to give each cell of a grid a red colour whose value is out of specification (less than lower limit or more than upper limit) but the columns in my iGird are created dynamically depending on the output. I thought of using scoreboard but I dont think it will work as the columns are being created dynamically and specification limit for each column is different.

How to do this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Adarsh,

I have already applied the logic which you suggested in your 2nd point.

Thanks,

Anuj

sidnooradarsh
Contributor
0 Kudos

Hello Anuj,

I would try either of these two options,

1) Use XSLT to transform the output

2) Once the Grid is generated, on Update Event, call a function to loop through each cell of grid, compare against the threshold value and set the back ground color of the cell using one of below methods


1) setCellBackgroundColorAsString(int row,int col,String sColorNew) 
2) setCellBackgroundColor(int row,int col,Color colorNew)

Please note after setting cell back ground color do not perfrom document.grid.refresh() with refresh or update all the color will be reset.

Hope this helps!!

Regards,

Adarsh