[flexcoders] Combobox label function help
I am helping a fellow coder with using a labelFunction in a combobox that is an itemRenderer in a datagrid. Is there a special way I need to reference the labelFunction? Thanks -- http://grumpee.instantspot.com/blog
RE: [flexcoders] Combobox label function help
The labelFunction should be specified in a subclass, defined on an in-line item renderer, or added to the properties bag on itemRenderer's ClassFactory From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Friday, April 04, 2008 1:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Combobox label function help I am helping a fellow coder with using a labelFunction in a combobox that is an itemRenderer in a datagrid. Is there a special way I need to reference the labelFunction? Thanks -- http://grumpee.instantspot.com/blog http://grumpee.instantspot.com/blog
Re: [flexcoders] ComboBox Label
On 4/12/05, jwaknitz [EMAIL PROTECTED] wrote: render_choice response_label ident=A material mattextLess than $200/mattext /material /response_label [snip] The problem is, how do I set the label to the mattext that is two elements down? mx:ComboBox dataProvider={xml.render_choice.response_label} labelFunction={function(o){return o.material.mattext}} / Actually creating a new function and making labelFunction point to that would be more efficient (though I like this way of expressing it). -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] ComboBox Label
Hello, I am having problems with the ComboBox component. I want to use the xml: render_choice response_label ident=A material mattextLess than $200/mattext /material /response_label response_label ident=B material mattext$201-$400/mattext /material /response_label response_label ident=C material mattext$401-$800/mattext /material /response_label So I did: mx:ComboBox dataProvider={xml.render_choice.response_label}/ The problem is, how do I set the label to the mattext that is two elements down? I tried doing labelField=material.mattext and labelField=material['mattext'], neither worked. How do I go about setting the label correctly? Am I going to have to do a labelFunction? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
RE: [flexcoders] ComboBox Label
Unless someone corrects me.. Yes, if you want to feed a combobox (which is a list based control and really wants an array) with a hierarchical dataProvider like xml, you will have to use a label function. Or convert the whole XML struc into an array. Tracy -Original Message- From: jwaknitz [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 6:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox Label Hello, I am having problems with the ComboBox component. I want to use the xml: render_choice response_label ident=A material mattextLess than $200/mattext /material /response_label response_label ident=B material mattext$201-$400/mattext /material /response_label response_label ident=C material mattext$401-$800/mattext /material /response_label So I did: mx:ComboBox dataProvider={xml.render_choice.response_label}/ The problem is, how do I set the label to the mattext that is two elements down? I tried doing labelField=material.mattext and labelField=material['mattext'], neither worked. How do I go about setting the label correctly? Am I going to have to do a labelFunction? Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/