I am trying to change the color for a datagrid header rollover but the rollover color selects the same color for the cells and the header. Is there a way to avoid this?
 
Also, I want to make the datagrid deselectable however, want to change the background color for the row later (based on an event in another datagrid). How do I achieve this in Flex 2?... Setpropertiesat() does not work in Flex 2...
 
Thanks in advance
 
Niyati

Ely Greenfield <[EMAIL PROTECTED]> wrote:
 
 
Sorry...try:
 
LineSeriesItem(hitData.chartItem).y.value;
 
Ely.
 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jnewport
Sent: Tuesday, October 03, 2006 12:47 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Format a datatip.

This throws an error.

"Cannot convert [EMAIL PROTECTED] to mx.chart.series.items.LineSeriesItem"

/////////Start of datatipcode///////////////////////////
private function formatDataTip(hitData:HitData):String{

var months:String = LineSeriesItem(hitData.item).yValue;
var name:String = hitData.item.toString();
var revenue:Number = hitData.item.revenue;
return "<b>"+name+"</b><br>"+months+"<br>"+cf.format(revenue);
}

//////////////////End datatip code////////////////

Any suggestions?

--- In [EMAIL PROTECTED]ups.com, "Ely Greenfield" <[EMAIL PROTECTED].> wrote:
>
>
>
>
> LineSeriesItem(hitData.item).yValue
>
> Ely.
>
>
> ________________________________
>
> From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On
> Behalf Of jnewport
> Sent: Friday, September 29, 2006 12:35 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] Re: Format a datatip.
>
>
>
> I tried that, but didn't work correctly.
>
> LineSeries.(hitData.element).yField. which gave me the State name,
> but it won't give me the amount, which is what I am trying to get to
> do format.
>
> I have been trying to use chartItem, but no success. Flex can get me
> all the data on its own with the showDataTips=true, so it knows how to
> get the data out of my ArrayCollection. I just want to be able to get
> at what Flex knows.
>
> I need to get at what showDataTips is doing when set to True.
>
> Anyone know what it is?
>
> --- In [EMAIL PROTECTED]ups.com <mailto:flexcoders%40yahoogroups.com>
> , "Mehdi, Agha" <Agha.Mehdi@> wrote:
> >
> > J,
> >
> > Try event.hitData.element.yField/.xField
> >
> > Agha Mehdi
> > IDT - eBusiness Program Manager
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]ups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:[EMAIL PROTECTED]ups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of jnewport
> > Sent: Friday, September 29, 2006 9:11 AM
> > To: [EMAIL PROTECTED]ups.com <mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Format a datatip.
> >
> > I was wondering how to format a datatip for a LineChart. If I use
> > showDataTips everything looks good but the amounts are not formatted
> > to $##,###. I have created an ArrayCollection that looks like the
> > following.
> >
> > private var expensesAC:ArrayCollection = new ArrayCollection( [
> > { Month: "Jan", Texas: 2000, Utah: 1500, Kansas: 450 },
> > { Month: "Feb", Texas: 1000, Utah: 200, Kansas: 600 },
> > { Month: "Mar", Texas: 1500, Utah: 500, Kansas: 300 },
> > { Month: "Apr", Texas: 1800, Utah: 1200, Kansas: 900 },
> > { Month: "May", Texas: 2400, Utah: 575, Kansas: 500 } ]);
> >
> > I have tried to use cf.format(); on the data before its put into the
> > ArrayCollection, which works so I get something like this.
> >
> > private var expensesAC:ArrayCollection = new ArrayCollection( [
> > { Month: "Jan", Texas: $2,000, Utah: $1,500, Kansas: $450 },
> >
> > But then Flex won't plot the data....guessing it doesn't like the "$".
>
> >
> >
> > So I am trying to use a function like this
> >
> > private function formatDataTip(hitData:HitData):String {
> > var month:String = hitData.item.DONTKNOWWHATSHOULDGOHERE
> >
> > but I don't know what should come after item. I have tried to do a
> > trace(hitData.item.toString), but I get object object. Is there a way
> > to trace out whats in the hitData.item?
> >
> > J
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> <http://www.mail-archive.com/flexcoders%40yahoogroups.com>
> > Yahoo! Groups Links
> >
>



Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW


Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to