when should this change be made because when dataprovider is set this is productSubTypeCB.selectedIndex = 0;
any idea what event is thrown when dataprovider is set?? --- In [email protected], "Vladimir Pavlović" <[EMAIL PROTECTED]> wrote: > > From code, You can change selected index using > > productSubTypeCB.selectedIndex = 1; > > --- In [email protected], Max Frigge <m.frigge@> wrote: > > > > You are using selectedItem instead of selectedIndex. > > > > <mx:ComboBox id="productSubTypeC B" width="160" > > > > dataProvider= "{selectedProduc t.typeNames} " > > > > selectedIndex= "1" > > > > change="productOffe r.productSubType = event.currentTarget .value" /> > > > > Max > > > > ----- Original Message ---- > > From: gur_sukh <gur_sukh@> > > To: [email protected] > > Sent: Thursday, February 7, 2008 4:18:30 AM > > Subject: [flexcoders] Setting combobox selectedindex > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The combobox dataprovider sets selectedindex to 0. How do we set it to > > > > something else. > > > > > > > > AS the dataprovider is bound to model and every time it changes the > > > > selected index is 0. > > > > > > > > For demo purposed i need to set this to 1. > > > > > > > > <mx:ComboBox id="productSubTypeC B" width="160" > > > > dataProvider= "{selectedProduc t.typeNames} " > > > > selectedItem= "1" > > > > change="productOffe r.productSubType = event.currentTarget .value" /> > > >

