Hi Raj Prabha this worked Thank You :) On Jan 7, 8:34 am, raj <[email protected]> wrote: > Hi, > > Create a custom combo box and use outerDocument.labelField to get > combo box's labelField. > Check the following code. If you find any other better solution, plz > post it. > > /**CustomComboBox.mxml**/ > > <?xml version="1.0" encoding="utf-8"?> > <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"> > <mx:itemRenderer> > <mx:Component> > <mx:TextInput text="{data[outerDocument.labelField]}" /> > </mx:Component> > </mx:itemRenderer> > </mx:ComboBox> > > /**Sample.mxml**/ > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="vertical" xmlns:local="*"> > <mx:ArrayCollection id="arrColl"> > <mx:source> > <mx:Array> > <mx:Object label="Student A" score="85" /> > <mx:Object label="Student B" score="48" /> > <mx:Object label="Student C" score="71" /> > </mx:Array> > </mx:source> > </mx:ArrayCollection> > <local:CustomComboBox dataProvider="{arrColl}" labelField="score" /> > <local:CustomComboBox dataProvider="{arrColl}" labelField="label" /> > </mx:Application> > > With regards, > RajPrabha > > On Jan 5, 12:44 am, comgeek <[email protected]> wrote: > > > I can do that., but I want to do it I want to do this as a (reusable > > custom component).. so I tried using 'parent.' but 'parent' from > > itemrenderer is pointing to Listbox(dropdown of combobox), and I also > > used 'parent.parent' but no use.. > > > Is there any other way? > > > On Jan 4, 7:59 pm, Kiran Kumar Vasireddy <[email protected]> wrote: > > > > Did you try giving an Id to combox and tried accessing it directly or by > > > using outerDocument ? > > > > Regards > > > Kirab > > > > On Sat, Jan 2, 2010 at 5:04 AM, comgeek <[email protected]> wrote: > > > > my Code is like this > > > > > <mx:ComboBox labelField="name"> > > > > <mx:itemRenderer> > > > > <mx:Component> > > > > <mx:TextInput text={data[labelField]} /> > > > > </mx:Component> > > > > </mx:itemRenderer> > > > > </mx:ComboBox > > > > > In itemrenderer I want to get the labelField property of the combobox > > > > but how can I get it.. > > > > > when I used this.parent in itemrenderer its showing some 'ListBast and > > > > not the 'ComboBox' > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Flex India Community" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<flex_india%2bunsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/flex_india?hl=en.-Hide quoted text - > > > - Show quoted text -
-- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

