Re: [flexcoders] combobox, sdk 3.5 bug, any workarounds?
On Monday 05 Apr 2010, ArunKumar Madas wrote: > Thanks Peeyush. That helps. > We have referred everywhere across our code and changing > all the instances is a bigger change. That's when Monkey Patching is useful. -- Helping to appropriately maintain design-patterns as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] combobox, sdk 3.5 bug, any workarounds?
Thanks Peeyush. That helps. We have referred everywhere across our code and changing all the instances is a bigger change. I guess, for this very reason creating a an extended base components one time and using with custom namespace across the app is a good idea. We just turned back to 3.4 (as we cannot rely on the nightly 3.6 builds), now that we are just a build away from going live. Thanks again, ~ Arun On Mon, Apr 5, 2010 at 2:15 AM, Peeyush Tuli wrote: > > > Override the combobox class in a custom component and add the following > code - > > private var mDropDown:ListBase; > override public function set dataProvider(value:Object):void > { > super.dataProvider = value; >//Bug in Flex SDK 3.5: Once the data provider is set and list base is > created >//change in dataProvider does not reflect change in shared dataProvider > of listbase >mDropDown = dropdown; > if(mDropDown) > { > validateSize(true); > mDropDown.dataProvider = super.dataProvider; > if(isNaN(preferredDropDownWidth)) > mDropDown.width = width; > else > mDropDown.width = preferredDropDownWidth; > } > } > > ~Peeyush > http://www.metadesignsolutions.com > > > On Sat, Apr 3, 2010 at 10:33 PM, ArunKumar Madas wrote: > >> >> >> Any one has a quick workaround for this sdk 3.5 bug. >> >> http://forums.adobe.com/message/2642802 >> >> It is also seen when you just pop-up a title window containing a Combobox >> and try to change the dataprovider (doesnt get refreshed until you try to >> click one of the items). >> >> >> > > >
Re: [flexcoders] combobox, sdk 3.5 bug, any workarounds?
Override the combobox class in a custom component and add the following code - private var mDropDown:ListBase; override public function set dataProvider(value:Object):void { super.dataProvider = value; //Bug in Flex SDK 3.5: Once the data provider is set and list base is created //change in dataProvider does not reflect change in shared dataProvider of listbase mDropDown = dropdown; if(mDropDown) { validateSize(true); mDropDown.dataProvider = super.dataProvider; if(isNaN(preferredDropDownWidth)) mDropDown.width = width; else mDropDown.width = preferredDropDownWidth; } } ~Peeyush http://www.metadesignsolutions.com On Sat, Apr 3, 2010 at 10:33 PM, ArunKumar Madas wrote: > > > Any one has a quick workaround for this sdk 3.5 bug. > > http://forums.adobe.com/message/2642802 > > It is also seen when you just pop-up a title window containing a Combobox > and try to change the dataprovider (doesnt get refreshed until you try to > click one of the items). > > > >
[flexcoders] combobox, sdk 3.5 bug, any workarounds?
Any one has a quick workaround for this sdk 3.5 bug. http://forums.adobe.com/message/2642802 It is also seen when you just pop-up a title window containing a Combobox and try to change the dataprovider (doesnt get refreshed until you try to click one of the items).