Hi Sankar,

Try this:

var obj:Object = arrColl.getItemAt(3);
obj.name = "new Name";
arrColl.setItemAt(obj,3);

Regards,
Venkat

On Jan 27, 12:11 pm, Jitendra Jain <[email protected]>
wrote:
> why are you using arrayColl[3]? use getItemAt method.
>
> On Wed, Jan 27, 2010 at 12:37 PM, Jitendra Jain <
>
>
>
> [email protected]> wrote:
> > from where are you retrieving the saved data?
>
> > On Wed, Jan 27, 2010 at 12:34 PM, sankar swaroop 
> > <[email protected]>wrote:
>
> >> but this is working the same. no change
>
> >> On Wed, Jan 27, 2010 at 12:04 PM, Jitendra Jain <
> >> [email protected]> wrote:
>
> >>> Instead do this,
>
> >>> var obj :Object = arraycoll[3];
> >>> obj.name='same name';
>
> >>> In your case, the name property is behaving like a key and all the
> >>> objects have the key named 'name'. So every object is updated .
>
> >>> On Tue, Jan 26, 2010 at 2:45 PM, sankar swaroop 
> >>> <[email protected]>wrote:
>
> >>>> Hi friends,
>
> >>>> I given an arraycollection as a dataprovider to a datagrid which was
> >>>> with some itemrenderers.
> >>>> while retrieving the saved data from the grid i am copying some columns
> >>>> like
> >>>> arraycoll[3]['name'] = 'saome name';
> >>>> when i am assigning some value to a particular row item in the
> >>>> dataprovider arraycollection,
> >>>> all the rows are updating with the same name.
> >>>> for example: if an arraycollection has 3 items like
> >>>> arrcoll:ArrayCollection = new Arraycollection([
> >>>> {name:'sample1' id:1},
> >>>> {name:'sample2' id:1},
> >>>> {name:'sample3' id:1}
> >>>> ]);
> >>>> when i want to update the second name i.e.sample2 with sample4 and i
> >>>> assigned that value like
> >>>> arrcoll[1]['name']='sample4';
> >>>> all the items are effecting like
>
> >>>> {name:'sample4' id:1},
> >>>> {name:'sample4' id:1},
> >>>> {name:'sample4' id:1}
>
> >>>> So how can i update a single item in an arraycollection.
> >>>> please provide me the solution
>
> >>>> Thanks,
> >>>> shankar swaroop
>
> >>>>  --
> >>>> 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]<flex_india%[email protected]>
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/flex_india?hl=en.
>
> >>> --
> >>> Thanks and Regards,
> >>> JJain,
>
> >>>   If you have knowledge, let others light their candles in it --Margaret
> >>> Fuller:
>
> >>> --
> >>> 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]<flex_india%[email protected]>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/flex_india?hl=en.
>
> >>  --
> >> 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]<flex_india%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/flex_india?hl=en.
>
> > --
> > Thanks and Regards,
> > JJain,
>
> >   If you have knowledge, let others light their candles in it --Margaret
> > Fuller:
>
> --
> Thanks and Regards,
> JJain,
>
>   If you have knowledge, let others light their candles in it --Margaret
> Fuller:

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