Hi Sudipta,

This is happening because flex re-uses an item renderer, so when the
data changes, it might not always update the correct view. To overcome
this problem, I used "dataChange" event in renderer as followed -
Whenever data changes, imagesource in this code is reconstructed
again. You will have to re-set the values of the check-boxes. It
forces the view to change when data changes.

<mx:VBox  xmlns:mx="http://www.adobe.com/2006/mxml"; width="400"
height="100%" creationComplete="initializeRenderer()"
        dataChange="initializeRenderer()">

       <mx:Image horizontalAlign="center" source="{imageSource}"
width="100%" height="100%" maintainAspectRatio="false" />

        <mx:Script>
                <![CDATA[
                                [Bindable]
                                private var imageSource:String = new String();

                                private function initializeRenderer():void
                                {
                                        imageSource = ("images/vid/" + data.Id 
+ ".jpg");
                                }

                 ]]>
        </mx:Script>

</mx:VBox>

On Nov 5, 2:34 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> suppose user has input text in 1st,2nd and 3rd box,all other
> textInputBoxes are blank in other itemRenderers, if now you scroll
> down, you will seee that data which user inputes in 1,2,3 reflects in
> other boxes randomly and the data is lost or mringled the same thing
> happens in case of check boxes to in their selected property.
>
> On Nov 5, 2:11 pm, "Vinod M. Jacob" <[EMAIL PROTECTED]> wrote:
>
> > What is the problem ? Is the data lost in the input Box ?can you be little
> > more specific?
>
> > On Wed, Nov 5, 2008 at 2:24 PM, [EMAIL PROTECTED] <
>
> > [EMAIL PROTECTED]> wrote:
>
> > > if a textinput box or a check box is used as a itemRenderer in
> > > TileList and user checks or gives input to them , after that if anyone
> > > scrolls down or up the TileList the data in the textInputbox does not
> > > show properly.- Hide quoted text -
>
> > -                    Show quoted text -

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

Reply via email to