?
Solved

Advanced Datagrid : fade effect

Posted on 2011-09-15
8
Medium Priority
?
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 

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 2000 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

DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

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…
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 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