PDA

View Full Version : DataGrid highlight disappears when row UI changes


Crunchy Cat
05-24-2007, 07:34 PM
Hello,

I just started using Flex and I found an odd behavior which I am not quite sure how to go about solving (mainly becuase I am not sure why it happens).

My datagrid is populated via an XMLList object, and the data asynchronsly changes over time. I have a progress bar in every row that is updated as the data changes (it's listening to a TextInput which in turn is bound directly to XML data). Everytime a progressbar updates then the rollOver highlight for whatever row the mouse is over simply vanishes... never to return until I move the mouse to another row.

I was able to reproduce the same behavior by stuffing an image and zoom control into a grid container which in turn was added to a datgrid row. Specifically, I set the zoom control to expand and contract the image when the mouse rolled over and out of the grid container. Everytime a zoom happens, the rollOver highlight for the current row vanishes and of course is only restored by moving to another row.

Why does this happen and how to I preserve the row highlight?

Thanks!

Crunchy Cat
05-25-2007, 09:33 PM
No ideas or suggestions? Anybody? Maybe my description is too complex. If I were to simplify it then I would say:

* It appears that any asynchronous rendering to custom controls in a datagrid cell makes the current rollOver row highlight disappear.

So why does this happen and how can I keep the rollover highlight?

Crunchy Cat
05-28-2007, 08:48 AM
I can hear the crickets... surely somebody has run into this?