Alex, Your code is very interesting, and quite instructive. Thank you.
You said that your code handles labelFunction and dataField; however the asdoc for the itemToLabel() method reads: public function itemToLabel(data:Object):String "Returns the string the renderer would display for the given data object based on the labelField and labelFunction properties. If the method cannot convert the parameter to a string, it returns a single space." ... no mention of dataField. Am I missing something? The goal is to export the text from any datagrid's displayed cells into a 2D array that is sent to a server. In the general case, one cannot assume anything about the dataProvider, or how the text in each DataGrid's cell is constructed. There are no constraints on the types of renderers that need to be supported. The export should handle any datagrid handed to it. This means that if item renderers are used, they need to be instantiated and the text values for each cell read out... and the export routine has to figure out how to do this without any clues beyond what it can discover from the dataGrid. Something to go 'hmm' about... Mike --- In [email protected], Alex Harui <aha...@...> wrote: > > I'm still not sure what your goal is and what things are under your control. > I can have a renderer that displays content not found in the data provider, > or one that shows colors and no text. A renderer can have multiple text > widgets inside it and be mixed with other controls. Is there some constraint > on what kinds of renderers you want to grab text from? > > Usually, you own the renderers. Are folks supplying renderers for you to use?

