Implement IDropInLIstItemRenderer.
The labelData will have a columnIndex where you can get the dataTipFunction and
run it (see DataGridItemRenderer.as). Once you have the text, you can display
it somehow, maybe by setting a tooltip somewhere
From: flexcoders@yahoogroups.com [mailto:[EMAIL
Does this clear things out for you ?I guess just use {data.property}.Check out this article
snip:mx:itemRenderer mx:Component mx:Canvas
mx:CheckBox id=complete width=20 x=10 y=4 selected=
{data.selected}/ mx:Text id=taskname text={data.label}/
/mx:Canvas /mx:Component/mx:itemRenderer
--
]On Behalf Of
WebdevotionSent: donderdag 20 april 2006 14:34To:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom
itemrenderer in datagrid
Does this clear things out for you ?I guess just use
{data.property}.Check
out this articlesnip:mx:itemRenderer
mx:Component
for a DataGrid contains data of the whole row.
I just want the cell data.
-Original Message-From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]On Behalf Of WebdevotionSent: donderdag 20 april 2006 14:34
To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom itemrenderer
mns
;)
-Original Message-From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]On Behalf Of
WebdevotionSent: donderdag 20 april 2006 15:43To:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Custom
itemrenderer in datagrid
Have you tried a for loop through the data
Foundsomething for you at Livedocs :)It confirms my thought about using data.label, data.id, data.productImage, ...as the correct syntax to access these properties.Basically your data object contains the data for the whole row,
which is a good thing, since you might want to combine data
@yahoogroups.comSubject: Re: [flexcoders] Custom
itemrenderer in datagrid
Foundsomething for you at Livedocs :)It confirms my thought
about using data.label, data.id,
data.productImage, ...as the correct syntax to access these
properties.Basically your data object contains the data
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of B.Brey
Sent: Thursday, April 20, 2006
10:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Custom
itemrenderer in datagrid
Well i need the data for the current cell.
Is there any way to find out which
@yahoogroups.com
Subject: RE: [flexcoders] Custom itemrenderer in datagrid
Well i need the data for the current cell. Is there any way to
find out which column is the current column rendered?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
hi
I did it like this:
setValue (str:String, obj:Object):Void
{
var col:DataGridColumn =
listOwner.getColumnAt(columnIndex);
var itemProperty = obj[col.columnName];
.
}
you got to define listOwner and columnIndex in the cellRenderer Class
Thomas
--
10 matches
Mail list logo