Hi Karthik,

Use this.data[(listData as DataGridListData).dataField] in the 'set
data' of your itemRenderer. This will automatically have the dataField
value which you will be passing from column.

HTH,

-Ravi

On Jun 26, 4:13 pm, Karthik K <[email protected]> wrote:
> hi Ravi
>
> Thank you
>
> <mx:DataGrid id="myADG" >
>      <mx:columns>
>          <mx:DataGridColumn dataField="id" width="50" sortable="false"
> itemRenderer="myrenderer"/>
>          <mx:DataGridColumn dataField="name"  sortable="false"
> itemRenderer="myrenderer"/>
>          <mx:DataGridColumn dataField="detail" sortable="false"
> itemRenderer="myrenderer" />
>      </mx:columns>
>
> </mx:DataGrid>
>
> how to find dataField="id" "id" is coming in to myrendereror
> dataField="name" "name" coming to myrenderer
>
> how to find which data is coimng into renderer
>
> any idea
>
> --
> Karthik.k
> Mobile - +91-9894991640
>
> On Fri, Jun 26, 2009 at 4:40 PM, Ravi Mishra <[email protected]> wrote:
>
> > Karthik,
>
> > You need to check at the point where you are creating columns, that
> > when name is coming and when address is coming. If its not name then
> > dont apply itemrenderer to that column.
>
> > HTH,
>
> > -Ravi
>
> > On Jun 26, 3:22 pm, Karthik K <[email protected]> wrote:
> > > Hi Dinesh
>
> > > thank you
>
> > > how to find my column data because i am sending dynamically
> > > how to find what data is coming in for a particular column
> > > we are having set data() method
> > > for me
> > > when name comes it should execute if adddress comes that should not
> > execute
>
> > > so how to find name and address
>
> > > --
> > > Karthik.k
> > > Mobile - +91-9894991640
>
> > > On Fri, Jun 26, 2009 at 3:02 PM, Dinesh Patil <[email protected]
> > >wrote:
>
> > > > Identify your column information in rederer using list data and change
> > the
> > > > behaviour of rensedre based on columns.
>
> > > > On Fri, Jun 26, 2009 at 2:56 PM, Karthik K <[email protected]
> > >wrote:
>
> > > >> hi guys
>
> > > >> i am using one common itemrenderer  i.e IDropInListItemRenderer
> > > >> i have different datagrid column that is accessing this itemrenderer
> > is
> > > >> there any option of stop executing the itemrenderer for a particular
> > > >> datagridcolumn
>
> > > >> i.e for some column it should execute and for others it should not
>
> > > >> because one itemrenderer for all datagrid column
>
> > > >> any idea
>
> > > >> --
> > > >> Karthik.k
> > > >> Mobile - +91-9894991640
>
>
--~--~---------~--~----~------------~-------~--~----~
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