Hi,

Sujit Thanks for ur reply.

Here In RPC we are  returning ArrayCollection containing objects and each
object has got properties prop1, prop2 and prop3.

I have stored the ArrayCollection values into a variable named listEmp but,
how to assign the properties names for each of the varible prop1, pro2,
prop3.

can you advice me how to achieve this.

Thanks in Advance..


--tomt















On 2/26/08, Sujit Reddy <[EMAIL PROTECTED]> wrote:
>
>   Lets say your RPC is returning ArrayCollection containing objects and
> each object has got properties prop1, prop2 and prop3
>
> your code should be similar to the below one
> dataGrid.dataProvider = arrayCollection;
> dataColumn1.dataField = "prop1";
> dataColumn2.dataField = "prop2";
>
>
> On Tue, Feb 26, 2008 at 3:30 PM, Sujit Reddy <[EMAIL PROTECTED]>
> wrote:
>
> > value of the dataField should be the name of the property from which the
> > value has to be retrieved.
> > for example, RPC is returning object with three properties named prop1,
> > prop2 and prop3.
> > then the dataField should be set to the name of the property like
> > dataField = "prop1";
> >
> > Hoe this helps.
> > Regards,
> > Sujit Reddy G
> >
> >
> > On Tue, Feb 26, 2008 at 1:38 PM, Tom Preet <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Hi All,
> > >
> > > In my app am using datagrid with three columns. to fill the data in to
> > > datagrid, am
> > > getting the data using remote object and stored  data into a
> > > Arraycollection in mxml.
> > >
> > > when am displaying the data into a grid it was displaying(repeating
> > > same data) in all the three
> > > columns.
> > > how to display the data within the respective fields.
> > >
> > > I have used column1.dataField="{lis.getItemIndex(1).toString()}" like
> > > this to
> > > display the content of field in first column but it was not displaying
> > > anything.
> > > can anyone help me how to achieve this.
> > >
> > >
> > > --tomt
> > >
> >
> >
> >
> >
> > --
> > Regards,
> > Sujit Reddy. G
>
>
>
>
> --
> Regards,
> Sujit Reddy. G
>
> 
>

Reply via email to