Tracy,
after some search and tests i found:
- labelFunction indeed works. But it is a implicit workaround for one
limitation of the actionscript 3 and not the Datagrid itself. (there is
one line of code inside the datagrid class that take the data using:
data = data[dataField] and if dataField isn't a leaf of a xml, this
isn't rigth evaluated )
- if we use the labelFunction, than re-sort with clicking on the
datagridcolumn doesn't work anymore. So we need to code sorting too.
- another way to solve this problem is to extend datagrid and code the
proper workaround OR give the data already on a format datagrid likes
(like greenfishinwaterr made )
i cant use the solution of greenfishinwater because there are already
too code on the servlets (and i dont want the idea of having a strange
response xml format without any nested data) so i extend my datagrid and
coded the labelFunction inside the new class.
it all works... but if data[dataField] evaluates rigth as we expect, too
much people using datagrids would not need to code labelFunction for
basic nested data manipulatiuons (i understand this function is great
and have to be there... but if i would need some column that are
calculations of another or something like that.. not to fetch nested data).
did you know when they will release a Flex 2.0.1 with some fixes?
did you know if xml evaluator like data[dataField] (when dataField is
something like [EMAIL PROTECTED]) will be improved
someday?
[]'s,
Luís Eduardo.
Tracy Spratt escreveu:
I don’t see where you mentioned or anyone suggested a labelFunction().
Will that not work for you?
If your dataProvider item is an e4x xml node, then it is easy to use
the selection expressions to get data from any nested level you want.
Tracy
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
*On Behalf Of *greenfishinwater
*Sent:* Tuesday, October 31, 2006 11:16 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: DataGrid not displaying nested data
No I did not find any solution.
I am getting my data via rails, and I added logic to the rails
controller to create extra fields all at the same level, so I don't
have to get a nested value. Its a pain in the neck. But I have to try
and resolve this in a better way soon.
Andrew
___
Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar
seu conhecimento? Experimente o Yahoo! Respostas !
http://br.answers.yahoo.com/
--
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
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* Your email settings:
Individual Email | Traditional
* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
* To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/