Title: Changing the background color of row in datagrid
Hi,
I would like to be able to change the background color of a row in the datagrid after I click on a row and then enter the letter : n in the input box called print_txt and hit enter. I use the setPropertiesAt method,
Parekh, Shweta - BLS CTR wrote:
I also tried using employee_dg.rows[rowInd].backgroundColor =
0xfff00; for changing the background color for a row but this does
not work.
This should probably be added the to FAQ as it gets asked a lot:
// Use setPropertiesAt to set the background color of
Title: Message
Darron,
I did use setPropertiesAt function as you have suggested. But my problem
is that
when I use it the way you have suggested, employee_dg.setPropertiesAt(rowInd,
{backgroundColor:0xFFF00});
the bg
color of the row does not change instanlty. I have to click somewhere
we did this recently. Didn't like the setProperties() approach
for our situation. We had a colour attribute in our
dataprovider. So we ended up with something like this for a
custom cell renderer. We have not polished it fully yet, but the
idea is there.
?xml version=1.0 encoding=UTF-8?
4 matches
Mail list logo