Solved

How do I fade/transition the background color of  a row in a Flex 4.0 AdvancedDataGrid?

Posted on 2010-08-18
3
564 Views
Last Modified: 2012-06-27
Hi:

I have an mx:AdvancedDataGrid on a panel in a Flex 4.0 application.

When a new row gets added to the grid, I would like to have it's background color be something like red.
Then over time, I would like to fade/transition this background color to the default row background color for that grid.

I'm adding rows 1 at a time as I get them from a data service call.
I would like to do this for each new row that gets added.

I've seen examples of transition states and fading, but it's not clear how (and if) they would/could apply to rows in a DataGrid.

It would be great if someone could help out with ideas shortly as this would add some sizzle to a client demo that's due in the next day or so.

Thanks,
JohnB
0
Comment
Question by:jxbma
  • 2
3 Comments
 
LVL 4

Assisted Solution

by:andreMariano
andreMariano earned 500 total points
Comment Utility
create an ItemRenderer...
override the set data method
and then apply your effect in wich set data call
0
 
LVL 1

Author Comment

by:jxbma
Comment Utility
I was able to change the color of the cells in a row and then change it.
I added a (hidden) column with a timestamp.
Once the row's time stamp exceeded a threshold, I used the row's default background.
I used an item renderer for this.

It would be nice to get the "Fade" effect to happen on a per row basis.
Is this possible with AdvancedDataGrid rows/cells?
I've used it before with standard controls.

Thanks,
JohnB

0
 
LVL 4

Accepted Solution

by:
andreMariano earned 500 total points
Comment Utility
Ok, there is 2 way of doing this....
1º and the way I current know is setting the same itemRenderer for each and every row that is setting the effects in the itemRenderer... it's actually easy.
2º and the way I don't know you can create you own Advanced data grid extending from a AdvancedDataGrid and in every change of row value, you can apply the effects
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now