found my own solution: (myToggleButtonBar.getChildAt(index) as Button).enabled
thanks for listening. --- In [email protected], "fumeng5" <[EMAIL PROTECTED]> wrote: > > Hi. > > I want to set properties for each element in my ToggleButtonBar's > dataprovider, i.e. enabled, visible, etc... > > Something like this: > > (myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false; > > But that doesn't work. > > I know the dataprovider of a ToggleButtonBar has to be a String, > Array, or IList. I already tried setting the dataprovider to be a > collection of buttons. > > So, is it possible to set button properties on my ToggleButtonBar? > > Thanks for any tips, > > fumeng. >

