This content has been marked as final. Show 8 replies
give the button an id and reference it that way?
Can you tell me how to give it an ID please?
ButtonBar has a dataProvider property which contains each button of the bar, i think that you could get an specific button from the dataProvider (is an array after all) and set its enabled property.
This is how i created the buttons inside the ButtonBar but the dataProvider is an object and it can be used to set the item's label, icon, and tip nothing more as I know so i don't think that the dataProvider would solve the problem, if you think so, can you specify how please?
are you not using mxml to create the button?
no am using the ButtonBar component and populating it with a dataProvider.
Is your problem solved?
Because i have the same problem:
I have a buttonbar and want to get to a specific button and disable it.
The problem i have is that i cannot reach the button i want to disable :(
I tried to give the specific button an id and than say id.enabled=false, but it doesn't work.
How did you solve your problem?
Please let me know.
Here you go!