my bad, I should have said Collection. You are right - Having said that, you still can use the utilities on the collections to manipulate the data on the datagrid before the actual population.ThanksHarish
On 10/16/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
Ahh, thats what I was looking
for. Thanks much.
-Iko
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: Sunday, October 15, 2006
10:55 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Manipulating data before
look at the labelFuntion attribute of the grid column tag. This give you the ability to massage the displayed value in a column. You can also bind using a function if you need more done to the data provider like this:
dataProvider={ doSomething(myData) }DKOn 10/14/06, iko_knyphausen [EMAIL
If you're using an ArrayCollection to populate your grid you could
always
edit/adjust or otherwise manipulate the data in your event handler. For
instance, if you're using Web services, you can loop the data coming
from
the server and manipulate it as you add it into your ArrayCollection.
Or, as
I suggest you take a look at the fiterFunction and labelFunction methods on the datagrid. Since the datagrid dataprovider is an arraycollection, you can apply all utilities that are available on the arraycollection class to manipulate what you display in the datagrid finally
HarishOn 10/16/06,
'Since the datagrid dataprovider is an arraycollection'I don't mean to pick at this statement, but I was browsing through the source for DataGrid today, glutton for punishment I know. The code trail eventually leads to
ListBase.as. In the dataProvider setter it appears that this is not always
6 matches
Mail list logo