Solved

Advanced Datagrid : fade effect

Posted on 2011-09-15
8
528 Views
Last Modified: 2012-05-12
hi guys

I am working with flex advanced datagrid
when an item is changed in any row of AdvancedDataGrid, i want a Fade effect on that row.

Is that possible to do that in action script?

This is how i am creating the columns

public class TradeGrid extends VBox{

private function createColumn(columnIndex:int,fieldObject:Object):AdvancedDataGridColumn{
var column:AdvancedDataGridColumn = new AdvancedDataGridColumn();
column.headerText = fieldObject.caption;                   
column.editable = true;
//here i want a fade effect ( like it should fade from Black to white)
return column;
   }
}

Is it possible to do that?
any help will be greatly appreciated

thanks
0
Comment
Question by:royjayd
  • 4
  • 4
8 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36553005
fade? or change color?
0
 

Author Comment

by:royjayd
ID: 36553038
Well , Some kind of effect would be nice on that row which is changed by the user..
Fade or change in color would be fine.
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36553049
Please can you decribe more what exactly do you want. Change on entire row or column?
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:royjayd
ID: 36553901
Say I have editable  datagrid with 2 columns 'id' and
'name'.  I have 5 rows something like
Id   Name
1.     Jay
2.      Peter
3.     Tracy
4.     John
5.      Erwin

Modify row:  textbox
Modify name: textbox
Submit button


Now user enters 4 in modify row textbox and
User enters jhonny in Modify name textbox and clicks
Submit button. So the name in fourth row of datagrid should change
From John to jhonny with some fade effect on that row.


When

0
 

Author Comment

by:royjayd
ID: 36553915
So basically when the value in a datagrid row changes
I want some fade effect on that row.
Maybe I need to use the 'change' event listener but not sure..

Thx
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36555569
You can do text fading ONLY when fonts are EMBEDDED

But I will not recommend for such not important feature add couple KB into your file
0
 

Author Comment

by:royjayd
ID: 36560008
ok instead of fading the entire row is it possible to fade the text which has changed.
In above example when 'John' is  changed to 'Jhonny' i want the text fade effect on 'Jhonny'

Basically i want the user to see the text change...

thx.
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36561688
Yes, you can change a font color, please check this link.

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_27229187.html

override public function getTextStyles():TextFormat{
                                                var tf:TextFormat = super.getTextStyles();
                                                if(listData == null || data is DataGridColumn)
                                                      return tf;
                                                var item:Object = data[DataGridListData(listData).dataField];
                                                if(item == "'Jhonny")
                                                      tf.color = 0xff0000;
                                                return tf;
                                          }
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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