|
I think if you’re going to want the color
to follow the row around you’re going to need to use a custom cell
renderer. Have the checkbox set a property on the item and then have the cell
renderer look at that property to decide what the background color should be.
If the property is null just use the default color. Or do the alpha trick that
was mentioned in a post within the last few days… Matt From: Hi, I am a problem with the vertical scrolling in a datagrid. I am not using a cell renderer for this because the user
clicks on the cell and then goes outside the datagrid to the print checkbox. If
he then checks this print checkbox, the background color of cell should change.
I got the bg color of cell to change. But the problem is when I add more rows
to the datagrid and it has a vertical scrollbar, the color messes up ie. it
highlights the cells that was not clicked.moslty cells on the last row of the
datagrid. I think this is because Flex re-uses cells and so every time I
scroll, the previous cell that we have modified the style of is, used to
display the new cell. How can I rectify this? Somebody else face problems with
using style on particular cells and the style being displayed on new cells when
new rows are added and datagrid is scrolled??? Below is a sample snapshot. I change the bg color of cell in
row 1, add another row and scroll down and the bg color of cell in row 5 is
also changed.
Thanks,
|
Title: datagrid cell style problem



