HI Ravi, Thanks for your reply. can you please supply itemeremender code??
Here is what my MXML looks like <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ *import* mx.controls.Label; *import* mx.controls.TextInput; *import* mx.managers.PopUpManager; *import* mx.controls.DateField; *import* mx.controls.DateChooser; *import* mx.controls.Alert; *public* *function* formatDate(item:Object):String { *return* dateF.format(item.data); } *public* *function* displayDate(obj:Object):*void* { *var* dateC:DateField = *new* DateField(); dateC.isPopUp = *true*; mycombo.addChild(dateC); *//Application.application.addChild(dateC); * } ]]> </mx:Script> <mx:DateFormatter id="dateF" formatString="DD/MM/YYYY"/> <mx:ComboBox id="mycombo" x="10" y="34" dataProvider="{ UserRoleModel.getInstance().userRoleArray}" labelFunction="formatDate" click="displayDate(mycombo.selectedItem)"> </mx:ComboBox> </mx:Application> On Tue, Jul 27, 2010 at 12:21 PM, Ravi Mishra <ravi.achi...@gmail.com>wrote: > Hi Malek, > > I think you could use DateField as an itemrenderer for your combobox > items to achieve that. > > HTH, > > -Ravi > http://achieveravi.blogspot.com > > On Jul 27, 10:56 am, Malek S <male...@gmail.com> wrote: > > HI All, > > I need your help in writing custom component > > > > my Requirment is > > i have combobox i want to populate it with Dates. > > Once user selects the date then calender should open > > > > request you to please paste the code. > > > > Regards > > MalekS > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to flex_in...@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.