Hi,
just wondering if you have any way of getting a row color.
its easy to set the color as setRowColor(rowid, color), and i have tried getRowColor(rowid)
just wondering if you can help me with this
thanks
There is no common solution, how to get color of row, because it can be set in many different ways ( by using style|class of row|cell tag )
In case of setRowColor you can try to access DOM property directly
var color=grid.rowsAr[id].bgColor;
where id - ID of row in question
Hi
thanks for the reply, i have tried doing what you suggested and it outputs an empty string. this is the code i tried
grid.setRowColor(rowid,"#FFDDDE");
alert(grid.rowsAr[rowid].bgColor)
it changes the color of the row fine but then the alert box shows but doesnt display anything, do you have any idea why this is happening and what i can do to get it working please
thanks
Sorry for misleading recommendation, the correct code would be
mygrid.setRowColor(1,"#FFDDDE");
alert(mygrid.rowsAr[1].firstChild.bgColor)
thanks very much that works fine now
richard