Re: [flexcoders] Style question - additional listeners to Bindables

2007-09-05 Thread Muzak
mx:Button enabled={COUNT == 5} /

Also look into propertyChange and PropertyChangeEvent
http://livedocs.adobe.com/flex/2/langref/mx/events/PropertyChangeEvent.html
http://livedocs.adobe.com/flex/201/html/metadata_141_06.html

regards,
Muzak

- Original Message - 
From: cbaray [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, September 05, 2007 5:05 AM
Subject: [flexcoders] Style question - additional listeners to Bindables


Say I have a variable counting up to 10 and back down to 1.  It does
this in a loop, just going from 1 to 10 back down to 1 back up to 10..

The variable is bindable.  Let's call it COUNT.

I have a Label that has COUNT as its data source, so the label's text
value goes from 1 up to 10 and back down again.

Now, let's say I have a button that I want to enable whenever the
variable is equal to 5.  There is a little more logic around this
behavior and so I don't think it's a flat out dataprovider solution.

What I think I'd like to do is add my own event listener to COUNT and
it would do the logic of checking to see if COUNT's new value == 5 and
if so, enabling the button.

But most of that observer/observable interface seems hidden to me via
the [Bindable] construct.  Then my method could do whatever additional
logic I can dream of.

Is there a way to add my own listener methods to [Bindable] variables?
 Or is there another standard way of addressing these issues within
the Flex paradigm?

Thanks much -
cris.





RE: [flexcoders] Style Question

2005-05-16 Thread Matt Chotin










Add mouseOver handlers and whatnot to your
cell renderer?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola
Sent: Friday, May 13, 2005 10:05
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Style
Question





Yep, you are right. Another tip, make sure you set
hScrollPolicy=off
vScrollPolicy=off on the blackText..mxml file or
you will wind up scroll bars in your grid when
resizing the app. The
only other problem is that the grids hover over
policies no longer
work where the cell renderer is. Any ideas ?

Rich

On 5/13/05, Sreejith Unnikrishnan
[EMAIL PROTECTED] wrote:
 
 Wrong! I learnt the little I know from
FlexCoders (I mean the people on this
 list) 
 It does not hurt to put in a little code ... 
 Good for the novice (learns) and the expert
(reviews and corrects or
 improves), dont you agree :-) 
 
 This is a great forum and a repository! 
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of Rich Tretola
 Sent: Friday, May 13, 2005 9:59 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Style Question
 
 Thanks but you could have just said that the
Cell was supposed to be
 the id prop for the Text component.
 
 Rich
 
 On 5/13/05, Sreejith Unnikrishnan
[EMAIL PROTECTED] wrote:
  
  Sorry missed that one  theCell is
the ID of the mx:Text in the
  CellRenderer 
  
  I shall rewrite the code for you ... 
  
  mx:DataGrid
dataProvider={selectedMonth.website} width=100%
  height=30%
 
mx:columns

 mx:Array


mx:DataGridColumn columnName=name
headerText=Website
  width=200
cellRenderer=blacktext/


mx:DataGridColumn columnName=value
headerText=Revenue
 
labelFunction=formatGridRevenue
  cellRenderer=blackText/

 /mx:Array
 
/mx:columns
  /mx:DataGrid
  
  
  // The CellRenderer File
--- blackText.mxml 
  
  ?xml version=1.0
encoding=utf-8?
  mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml
  width=100%
xmlns=*
  
  mx:Script
  ![CDATA[
  function setValue(str:String,obj:Object)
{
  theCell.text = str;
  }
  
  ]]
  /mx:Script
  
  mx:Text id=theCell
color=#00 /
  /mx:Canvas 
  
  Hope this helps! 
  Sree 
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
  Behalf Of Rich Tretola
  Sent: Friday, May 13, 2005 9:07 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Style Question
  
  What is theCell.text supposed to be ?
  
  Here is my grid:
  
  mx:DataGrid
dataProvider={selectedMonth.website} width=100%
  height=30%


mx:columns


mx:Array


mx:DataGridColumn columnName=name
  headerText=Website
  width=200/


mx:DataGridColumn columnName=value
  headerText=Revenue labelFunction=formatGridRevenue/


/mx:Array


/mx:columns


/mx:DataGrid
  
  Rich
  
  On 5/13/05, Sreejith Unnikrishnan
[EMAIL PROTECTED] wrote:
   You're right ...
   You can use a cellRenderer
... (tested this time :-)
   
   // ColorRenderer.mxml
   ?xml
version=1.0 encoding=utf-8?
   mx:Canvas
  xmlns:mx=http://www.macromedia.com/2003/mxml
   width=100%
xmlns=*
   mx:Script
   ![CDATA[
   function
setValue(str:String,obj:Object) {
   theCell.text = str;
   }
   
   ]]
   /mx:Script
   mx:Text
color=#00 /
   /mx:Canvas
   
   In your datagrid column you
can specify cellRenderer=ColorRenderer
   
   
   
   Rich Tretola wrote: 
   Nope, that didn't work as it
turned all of the text black incluing the
   header text. Is there
no way to have the header text a different
   color from the grid text ?
   
   Rich
   
   On 5/13/05, Sreejith
Unnikrishnan [EMAIL PROTECTED] wrote:
Rich,

Specify
color=#00 in the MXML code ... either in the
 mx:Datagrid
   or
in the mx:DataGridColumn
(if you want each column to be a different
   color)
It should work ...

Sree


Rich Tretola
wrote: 
This is my css
style for the grid which makes the header color and
text the way I
want it, but it also makes the grid text white, how
 can
I get the actual
data text to be another color? I tried using both
the DataGridRow
and DataGridColumn declarations but it doesn't
 effect
it:
DataGrid {
  

alternating-row-colors:#FEFEFE,#EFF3F6;
  
 header-colors:#141C5A,#829194;
  
 border-style:solid;
  
 border-color:#CC;
  
 v-grid-line-color:#CC;
  
 roll-over-color:#D7E4E9;
  
 color:#FF;
  
 font-size:10px;
  
 font-weight:normal;
  
 text-indent:4;
}

Tried adding the
following to my css file.

DataGridColumn {
  
 color:#00;
}

DataGridRow {
  
 color:#00;
}

Rich


On 5/12/05, Matt
Chotin [EMAIL PROTECTED] wrote:
 
 
 
 headerStyle I
think (Available on both DataGrid for all columns
 and

DataGridColumn for individual). 
 
 
 
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders

Re: [flexcoders] Style Question

2005-05-16 Thread Rich Tretola
I will give it a try this morning but this all seems like a lot of
work to simply get the text color I want for the datagrid.  Where is
the Flex 2 wishlist where can I request a css style for this ?

Rich

On 5/16/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 Add mouseOver handlers and whatnot to your cell renderer? 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rich Tretola
  Sent: Friday, May 13, 2005 10:05 AM
 
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Style Question 
  
 
   
 
 Yep, you are right.  Another tip, make sure you set
  hScrollPolicy=off vScrollPolicy=off on the blackText..mxml file or
  you will wind up scroll bars in your grid when resizing the app.  The
  only other problem is that the grids hover over policies no longer
  work where the cell renderer is.  Any ideas ?
  
  Rich
  
  On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:

   Wrong! I learnt the little I know from FlexCoders (I mean the people on
 this
   list) 
   It does not hurt to put in a little code ... 
   Good for the novice (learns) and the expert (reviews and corrects or
   improves), dont you agree :-) 
 
   This is a great forum and a repository! 
 


   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
   Behalf Of Rich Tretola
   Sent: Friday, May 13, 2005 9:59 PM
   To: flexcoders@yahoogroups.com
   Subject: Re: [flexcoders] Style Question
   
   Thanks but you could have just said that the Cell was supposed to be
   the id prop for the Text component.
   
   Rich
   
   On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
 
Sorry missed that one  theCell is the ID of the mx:Text in the
CellRenderer 
  
I shall rewrite the code for you ... 
  
mx:DataGrid dataProvider={selectedMonth.website} width=100%
height=30%
mx:columns
mx:Array
mx:DataGridColumn columnName=name headerText=Website
width=200 cellRenderer=blacktext/
mx:DataGridColumn columnName=value headerText=Revenue
labelFunction=formatGridRevenue
cellRenderer=blackText/
/mx:Array
/mx:columns
/mx:DataGrid
 
  
// The CellRenderer File --- blackText.mxml 
  
?xml version=1.0 encoding=utf-8?
mx:Canvas
 xmlns:mx=http://www.macromedia.com/2003/mxml;
width=100% xmlns=*
 
mx:Script
![CDATA[
function setValue(str:String,obj:Object) {
theCell.text = str;
}

]]
/mx:Script
 
mx:Text id=theCell color=#00 /
/mx:Canvas 
  
Hope  this helps! 
Sree 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Friday, May 13, 2005 9:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Style Question

What is theCell.text supposed to be ?

Here is my grid:

mx:DataGrid dataProvider={selectedMonth.website} width=100%
height=30%
  mx:columns
 mx:Array
   mx:DataGridColumn columnName=name
headerText=Website
width=200/
 mx:DataGridColumn columnName=value
headerText=Revenue
 labelFunction=formatGridRevenue/
 /mx:Array
 /mx:columns
/mx:DataGrid

Rich

On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
  You're right ...
  You can use a cellRenderer ... (tested this time :-)
  
  // ColorRenderer.mxml
  ?xml version=1.0 encoding=utf-8?
  mx:Canvas
xmlns:mx=http://www.macromedia.com/2003/mxml;
 width=100% xmlns=*
  mx:Script
  ![CDATA[
  function setValue(str:String,obj:Object) {
  theCell.text = str;
  }
  
  ]]
  /mx:Script
  mx:Text color=#00 /
  /mx:Canvas
  
  In your datagrid column you can specify cellRenderer=ColorRenderer
 
  
  
  Rich Tretola wrote: 
  Nope, that didn't work as it turned all of the text black incluing
 the
  header text.  Is there no way to have the header text a different
  color from the grid text ?
  
  Rich
  
  On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
Rich,

Specify color=#00 in the MXML code ... either in the
   mx:Datagrid
 or
   in the mx:DataGridColumn (if you want each column to be a
 different
 color)
It should work ...

Sree

   
Rich Tretola wrote: 
This is my css style for the grid which makes the header color
 and
text the way I want it, but it also makes the grid text white,
 how
   can
I get the actual data text to be another color?  I tried using
 both

RE: [flexcoders] Style Question

2005-05-16 Thread Allen Manning





Hello Rich,

When I've noticed issues or had suggestions the Macromedia 
team pointed me in the direction of the 'Feature Request/Bug Report Form'. 


http://www.macromedia.com/support/email/wishform/

For documentation requests and comments, there is a 
separate docs email form.
http://www.macromedia.com/support/email/techsupport/

Both of these are outline in the below TechNote ' Sending 
feedback to the product and documentation teams'.
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_12032


HTH,
Allen

  
  

  


  

  Allen 
Manning, Technical Director 

  Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 











From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Rich 
TretolaSent: 16 May 2005 10:58To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Style 
Question
I will give it a try this morning but this all seems like a lot 
ofwork to simply get the text color I want for the datagrid. Where 
isthe Flex 2 wishlist where can I request a css style for this 
?RichOn 5/16/05, Matt Chotin [EMAIL PROTECTED] 
wrote:Add mouseOver handlers and 
whatnot to your cell renderer?
    
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of Rich Tretola Sent: Friday, May 13, 2005 10:05 AM 
 To: flexcoders@yahoogroups.com Subject: Re: 
[flexcoders] Style Question
  Yep, you are right. Another tip, make sure you 
set hScrollPolicy="off" vScrollPolicy="off" on the blackText..mxml 
file or you will wind up scroll bars in your grid when resizing 
the app. The only other problem is that the grids hover over 
policies no longer work where the cell renderer is. Any 
ideas ?  Rich  On 
5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: 
   Wrong! I learnt the little I know from FlexCoders 
(I mean the people on this  list)   
It does not hurt to put in a little code ...   Good for the 
novice (learns) and the expert (reviews and corrects or  
improves), dont you agree :-)
 This is a great forum and a repository!   
  
-Original Message-  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On  Behalf Of Rich 
Tretola  Sent: Friday, May 13, 2005 9:59 PM  
To: flexcoders@yahoogroups.com  Subject: Re: [flexcoders] 
Style QuestionThanks but you could have 
just said that the Cell was supposed to be  the id prop for 
the Text component.Rich 
   On 5/13/05, Sreejith Unnikrishnan 
[EMAIL PROTECTED] wrote: 
 Sorry missed that one  theCell is the ID of the mx:Text in 
the   CellRenderer
   I shall rewrite the code for you ...  
 mx:DataGrid 
dataProvider="{selectedMonth.website}" width="100%"   
height="30%"   
mx:columns  
 
mx:Array  
 
mx:DataGridColumn columnName="name" headerText="Website"  
 width="200" cellRenderer="blacktext"/  
 
mx:DataGridColumn columnName="value" headerText="Revenue"  
 labelFunction="formatGridRevenue"   
cellRenderer="blackText"/  
 
/mx:Array   
/mx:columns   /mx:DataGrid 
// 
The CellRenderer File --- blackText.mxml   
?xml version="1.0" 
encoding="utf-8"?   mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml" 
  width="100%" xmlns="*"   
   mx:Script   
![CDATA[   function setValue(str:String,obj:Object) 
{   theCell.text = str;   
}  ]]  
 /mx:Script  
mx:Text id="theCell" color="#00" /   
/mx:Canvas   
Hope this helps!Sree   
   -----Original 
Message-----   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On   Behalf Of Rich 
Tretola   Sent: Friday, May 13, 2005 9:07 PM 
  To: flexcoders@yahoogroups.com   Subject: Re: 
[flexcoders] Style Question  
What is theCell.text supposed to be ?
  Here is my grid:  
mx:DataGrid dataProvider="{selectedMonth.website}" 
width="100%"   height="30%"  
 
mx:columns  
 
mx:Array  
 
mx:DataGridColumn columnName="name"   
headerText="Website"   width="200"/  
 
mx:DataGridColumn columnName="value"   
headerText="Revenue" 
labelFunction="formatGridRevenue"/  
 
/mx:Array  
 
/mx:columns  
 
/mx:DataGrid  
Rich  On 5/13/05, Sreejith 
Unnikrishnan [EMAIL PROTECTED] wrote:
You're right ...You can use a cellRenderer 
... (tested this time :-)  
  // ColorRenderer.mxml
?xml version="1.0" encoding="utf-8"?
mx:Canvas   xmlns:mx="http://www.macromedia.com/2003/mxml" 
   width="100%" xmlns="*"
mx:Script![CDATA[ 
   function setValue(str:String,obj:Object) { 
   theCell.text = str;
}
]]/mx:Script  
  mx:Te

Re: [flexcoders] Style Question

2005-05-13 Thread Rich Tretola
This is my css style for the grid which makes the header color and
text the way I want it, but it also makes the grid text white, how can
I get the actual data text to be another color?  I tried using both
the DataGridRow and DataGridColumn declarations but it doesn't effect
it:
DataGrid {
alternating-row-colors:#FEFEFE,#EFF3F6;
header-colors:#141C5A,#829194;
border-style:solid;
border-color:#CC;
v-grid-line-color:#CC;
roll-over-color:#D7E4E9;
color:#FF;
font-size:10px;
font-weight:normal;
text-indent:4;
}

Tried adding the following to my css file.

DataGridColumn {
color:#00;
}

DataGridRow {
color:#00;
}

Rich


On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 headerStyle I think (Available on both DataGrid for all columns and
 DataGridColumn for individual). 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rich Tretola
  Sent: Thursday, May 12, 2005 6:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Style Question 
  
 
   
 
 What is the css property for changing the color of the header text of
  a datagrid ?  When I change the color property, it changes the header
  text but also changes the grid text color which is not what I need.  I
  need the 2 text colors set differently.
  
  Rich
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Style Question

2005-05-13 Thread Sreejith Unnikrishnan






Rich,

Specify color="#00" in the MXML code ... either in the mx:Datagrid
or in the mx:DataGridColumn (if you want each column to be a different
color)
It should work ...

Sree

Rich Tretola wrote:

This is my css style for the grid which makes the header color and
text the way I want it, but it also makes the grid text white, how can
I get the actual data text to be another color? I tried using both
the DataGridRow and DataGridColumn declarations but it doesn't effect
it:
DataGrid {
 alternating-row-colors:#FEFEFE,#EFF3F6;
 header-colors:#141C5A,#829194;
 border-style:solid;
 border-color:#CC;
 v-grid-line-color:#CC;
 roll-over-color:#D7E4E9;
 color:#FF;
 font-size:10px;
 font-weight:normal;
 text-indent:4;
}
  
Tried adding the following to my css file.
  
DataGridColumn {
 color:#00;
}
  
DataGridRow {
 color:#00;
}
  
Rich
  
  
On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 
 headerStyle I think (Available on both DataGrid for all columns and
 DataGridColumn for individual). 
 
 
 
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On
 Behalf Of Rich Tretola
 Sent: Thursday, May 12, 2005 6:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Style Question 
 
 
 
 
 What is the css property for changing the color of the header text
of
 a datagrid ? When I change the color property, it changes the
header
 text but also changes the grid text color which is not what I
need. I
 need the 2 text colors set differently.
 
 Rich
 
 
 
 Yahoo! Groups Links
 
 
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
  










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.














Re: [flexcoders] Style Question

2005-05-13 Thread Rich Tretola
Nope, that didn't work as it turned all of the text black incluing the
header text.  Is there no way to have the header text a different
color from the grid text ?

Rich

On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
  Rich,
  
  Specify color=#00 in the MXML code ... either in the mx:Datagrid or
 in the mx:DataGridColumn (if you want each column to be a different color)
  It should work ...
  
  Sree
  
 
  Rich Tretola wrote: 
  This is my css style for the grid which makes the header color and
  text the way I want it, but it also makes the grid text white, how can
  I get the actual data text to be another color?  I tried using both
  the DataGridRow and DataGridColumn declarations but it doesn't effect
  it:
  DataGrid {
alternating-row-colors:#FEFEFE,#EFF3F6;
header-colors:#141C5A,#829194;
border-style:solid;
border-color:#CC;
v-grid-line-color:#CC;
roll-over-color:#D7E4E9;
color:#FF;
font-size:10px;
font-weight:normal;
text-indent:4;
  }
  
  Tried adding the following to my css file.
  
  DataGridColumn {
color:#00;
  }
  
  DataGridRow {
color:#00;
  }
  
  Rich
  
  
  On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote:


   
   headerStyle I think (Available on both DataGrid for all columns and
   DataGridColumn for individual). 
   
 



   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of Rich Tretola
Sent: Thursday, May 12, 2005 6:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Style Question 

   
 
   
   What is the css property for changing the color of the header text of
a datagrid ?  When I change the color property, it changes the header
text but also changes the grid text color which is not what I need.  I
need the 2 text colors set differently.

Rich



Yahoo! Groups Links


   To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/
 
   To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Style Question

2005-05-13 Thread Sreejith Unnikrishnan






You're right ...
You can use a cellRenderer ... (tested this time :-)

// ColorRenderer.mxml
?xml version="1.0" encoding="utf-8"?
mx:Canvas xmlns:mx="http://www.macromedia.com/2003/mxml"
width="100%" xmlns="*"
mx:Script
![CDATA[
function setValue(str:String,obj:Object) {
theCell.text = str;
}

]]
/mx:Script
mx:Text color="#00" /
/mx:Canvas

In your datagrid column you can specify cellRenderer="ColorRenderer"


Rich Tretola wrote:

Nope, that didn't work as it turned all of the text black incluing the
header text. Is there no way to have the header text a different
color from the grid text ?
  
Rich
  
On 5/13/05, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote:
 Rich,
 
 Specify color="#00" in the MXML code ... either in the
mx:Datagrid or
 in the mx:DataGridColumn (if you want each column to be a
different color)
 It should work ...
 
 Sree
 
 
 Rich Tretola wrote: 
 This is my css style for the grid which makes the header color and
 text the way I want it, but it also makes the grid text white,
how can
 I get the actual data text to be another color? I tried using
both
 the DataGridRow and DataGridColumn declarations but it doesn't
effect
 it:
 DataGrid {
 alternating-row-colors:#FEFEFE,#EFF3F6;
 header-colors:#141C5A,#829194;
 border-style:solid;
 border-color:#CC;
 v-grid-line-color:#CC;
 roll-over-color:#D7E4E9;
 color:#FF;
 font-size:10px;
 font-weight:normal;
 text-indent:4;
 }
 
 Tried adding the following to my css file.
 
 DataGridColumn {
 color:#00;
 }
 
 DataGridRow {
 color:#00;
 }
 
 Rich
 
 
 On 5/12/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
  
  headerStyle I think (Available on both DataGrid for all
columns and
  DataGridColumn for individual). 
  
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] On
  Behalf Of Rich Tretola
  Sent: Thursday, May 12, 2005 6:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Style Question 
  
  
  
  
  What is the css property for changing the color of the
header text of
  a datagrid ? When I change the color property, it changes
the header
  text but also changes the grid text color which is not what
I need. I
  need the 2 text colors set differently.
  
  Rich
  
  
  
  Yahoo! Groups Links
  
  
  To visit your group on the web, go to:
  http://groups.yahoo.com/group/flexcoders/
  
  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
 
 
 Yahoo! Groups Links
 
 
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
  










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.














RE: [flexcoders] Style Question

2005-05-12 Thread Matt Chotin










headerStyle I think (Available on both
DataGrid for all columns and DataGridColumn for individual).











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rich Tretola
Sent: Thursday, May 12, 2005 6:48
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Style
Question





What is the css property for changing the color of the header text of
a datagrid ? When I change the color
property, it changes the header
text but also changes the grid text color which is
not what I need. I
need the 2 text colors set differently.

Rich












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.