When I tried to use dataFunction it is affecting my lineSeries. Does this have any impact on the graph?
Regards On Sep 26, 6:41 am, flexkwt <[EMAIL PROTECTED]> wrote: > Thanks a lot. > > I assume that it will not negate the values in > xField!http://groups.google.com/group/flex_india/browse_thread/thread/c29a0c... > > I will try dataFunction > > Regards > > On Sep 26, 12:09 am, "Venkat Viswanathan" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > There is something called "dataFunction", that will execute of every item. > > You can get the value of the item there. I also noticed that there is a > > property called "fillFunction". I have never used it but I feel it will come > > handy for you. > > > Regards, > > Venkat > > > On Thu, Sep 25, 2008 at 8:09 AM, flexkwt <[EMAIL PROTECTED]> wrote: > > > > I have another question though, > > > > > > > > > In the itemRenderer, override the "set data" method and inside > > > that you > > > > > > can > > > > > > > > check for the value in TestID > > > > If I want to achieve the same in <mx:PlotSeries or <mx:LineSeries, how > > > can I get a value for checking whether for examp TestID is value is 0 > > > or not ? > > > In <mx:DataGridColumn we could assign a value to it is dataField, but > > > <mx:PlotSeries or <mx:LineSeries doesn't have dataField. > > > So I am not sure how to get a value in the override set data" method > > > > Thanks > > > > On Sep 25, 10:33 am, flexkwt <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > > It is working, I declared as Bindable variable as used @Embed while > > > > declaring and changed from String to Class. > > > > > Thanks a lot. > > > > > On Sep 25, 2:03 am, "Venkat Viswanathan" <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Hi, > > > > > > Can you try loading an image from the local directory and see if it is > > > > > working properly? Just copy the green_tick.gif and RedTriangle.jpg to > > > the > > > > > same folder as your main mxml and see if it is loading... > > > > > > Regards, > > > > > Venkat > > > > > > On Wed, Sep 24, 2008 at 10:32 AM, flexkwt <[EMAIL PROTECTED]> wrote: > > > > > > > I managed to override and get the value > > > > > > However when I tried to display the image is not showing up. > > > > > > Below is my code > > > > > > public var imageurl:String = ""; > > > > > > > override public function set data(value:Object) : void { > > > > > > > super.data = value; > > > > > > // > > > > > > Alert.show("override value"+value.Test); > > > > > > if > > > > > > (value.Test == 0){ > > > > > > > imageurl = "http://tbn0.google.com/images?q=tbn:Yhf- > > > > > > ydZA1YqeFM:http://www.opti-drive.com/images/green_tick.gif"; > > > > > > } > > > > > > else > > > > > > { > > > > > > > imageurl = "http://tbn0.google.com/images? > > > > > > q=tbn:V_bK6hG0nq8TBM:http://www.485inc.com/images/RedTriangle.jpg< > > >http://tbn0.google.com/images?q=tbn:V_bK6hG0nq8TBM:http://www.485inc....> > > > > > > "; > > > > > > } > > > > > > > On Sep 24, 8:46 am, flexkwt <[EMAIL PROTECTED]> wrote: > > > > > > > Thanks Venkat. > > > > > > > > TestID is a item in a ArrayCollection. > > > > > > > I added TestID as addItem . > > > > > > > > So in the override function, I am not sure how to call the TestID > > > to > > > > > > > get its value. > > > > > > > > Regards > > > > > > > > On Sep 24, 1:02 am, "Venkat Viswanathan" <[EMAIL PROTECTED]> > > > > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > In the itemRenderer, override the "set data" method and inside > > > that you > > > > > > can > > > > > > > > check for the value in TestID and then set the source of the > > > image as > > > > > > per > > > > > > > > the requirement. > > > > > > > > > Regards, > > > > > > > > Venkatwww.venkatv.com > > > > > > > > > On Tue, Sep 23, 2008 at 6:44 PM, flexkwt <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > > > Hello, > > > > > > > > > > I have a <mx:DataGridColumn and dataField="TestID" > > > > > > > > > > I want to conditionally display an image based on the value > > > from > > > > > > > > > TestID. > > > > > > > > > Say if TestID is 0, then display red in the mx:DataGridColumn, > > > if > > > > > > > > > TestID is not 0 then display yellow. > > > > > > > > > > How can I do this? > > > > > > > > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

