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.

Thanks
Harish


On 10/16/06, Douglas Knudsen <[EMAIL PROTECTED]> wrote:

'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 the case.  If you pass a Array or ArrayCollection as a dataProvider, then yes.  But if you pass it XML the dataProvider is actually a XMLListCollection for example.  Anyhow, the dataProvider is always converted to some sort of collection though.

DK



On 10/16/06, Harish Sivaramakrishnan < [EMAIL PROTECTED]> wrote:
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

Harish


On 10/16/06, Aaron West < [EMAIL PROTECTED]> wrote:

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 suggested you can just use formatters to change *only* the
display
of specific columns w/o affecting the actual data.

| Aaron West
| aaron AT trajiklyhip DOT com
| http://www.trajiklyhip.com/blog/
| Certified Advanced Adobe ColdFusion MX 7 Developer
| Certified Macromedia FlashMX Developer
| Adobe Community Expert

On Oct 14, 2006, at 10:23 PM, iko_knyphausen wrote:

>
> Hi,
>
> what would be the best way to inspect and possibly manipulate data that
> gets populated into a DataGrid via data binding? This could be used to
> filter data, transform values, compute calculated fields etc.
>
> Is there a hook similar to the itemRenderer (which you could even
> 'abuse' for this, I guess)? An event that gets fired per record while
> populating? Obviously I am new to Flex, so forgive if I have overlooked
> the obvious.
>
> Thanks much
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>





--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to