Solved

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

Posted on 2010-08-18
3
566 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
ID: 33502100
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
ID: 33513023
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
ID: 33521176
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remove Index.php in Codeigniter 12 56
Product recommendation or SaaS Provider needed for a data collection tool 3 75
Web Data Entry Application 5 87
Problem to get function 52 100
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…
WHY MVC is the future technology... As many of you know, MVC is Model,View,Controller pattern. Model View Controller pattern was invented in a Smalltalk context at Xerox in late 1970s. Why is this buzz about MVC: --------------------------- …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

863 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

28 Experts available now in Live!

Get 1:1 Help Now