From: Kalyani Tiwari <kalyanialshi6...@gmail.com>
Date: Mon, 26 Oct 2009 00:41:40 -0700 (PDT)
Local: Mon, Oct 26 2009 1:11 pm
Subject: Re: Flex HorizontalList Dynamic Dataprovider Issue
Thanks, Anand, for the quick help.
As per your direction I have put
var rendererProducer:ClassFactory = new ClassFactory
hList.dataProvider = hListDP;
and added hListDP.refresh(); on scroll event.
Now there is still the same problem with the component view when
The exact problem is some images from component view disappears when I
Waiting for your response. Thanks,
On Oct 26, 11:34 am, "<fx:AnandVardhan/>" <vardhanan...@gmail.com>
> A little shift,
> put before the loop.. > var rendererProducer:ClassFactory = new ClassFactory > (CustomHorizontalListRenderer); > rendererProducer.properties = {width:hList.width/ > 2,height:hList.height*2}; > hList.itemRenderer = rendererProducer; > hList.dataProvider = hListDP;
> HTH
> On Oct 26, 11:28 am, Kalyani Tiwari <kalyanialshi6...@gmail.com>
> > Hi,
> > I have created a sample Flex application that uses HorizontalList
> > Now when I use static dataprovider that is if data to display is
> > My code for the sample app is as under:
> > sampleHList.mxml
> > <?xml version="1.0"?>
> > <mx:Script>
> > [Bindable]
> > [Bindable]
> > [Bindable]
> > [Bindable]
> > private var hListDP:ArrayCollection;
> > private function initHList():void
> > for(var itemCtr:Number=0; itemCtr<4; itemCtr++)
> > hList.dataProvider = hListDP;
> > var rendererProducer:ClassFactory = new ClassFactory
> > }
> > <mx:Panel title="HorizontalList Control Example" height="75%"
> > <mx:Label width="100%" color="blue"
> > <mx:HorizontalList id="hList" height="125" columnCount="3"
> > And here is the code for custom ItemRenderer:
> > <?xml version="1.0" encoding="utf-8"?>
> > Can anybody throw some light on this issue? Thanks,
> > Sincerely,
> - Show quoted text -
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||