<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Disabling individual buttons on a Flex ButtonBar control</title>
	<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sat, 22 Nov 2008 08:19:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Hagen</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11977</link>
		<author>Hagen</author>
		<pubDate>Mon, 14 Apr 2008 08:45:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11977</guid>
		<description>Hi Peter,

thanks for moving the bug at bugs.adobe.com! It was my first report, so i'm not so familar with the adobe-interface. 

Putting all the good staff together, i have build up a smal 'Customised ButtonBar Example'. Using a extended version of the ButtonBar component and custom events the user are able to enable/disable ButtonBar 'childs'. You can find the application and the source code here:

http://www.newbit.org/flexexamples/CustomButtonBarExample/bin/CustomButtonBarExample.html

Ok, that's it.

Hagen</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>thanks for moving the bug at bugs.adobe.com! It was my first report, so i&#8217;m not so familar with the adobe-interface. </p>
<p>Putting all the good staff together, i have build up a smal &#8216;Customised ButtonBar Example&#8217;. Using a extended version of the ButtonBar component and custom events the user are able to enable/disable ButtonBar &#8216;childs&#8217;. You can find the application and the source code here:</p>
<p><a href="http://www.newbit.org/flexexamples/CustomButtonBarExample/bin/CustomButtonBarExample.html" rel="nofollow">http://www.newbit.org/flexexamples/CustomButtonBarExample/bin/CustomButtonBarExample.html</a></p>
<p>Ok, that&#8217;s it.</p>
<p>Hagen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11827</link>
		<author>peterd</author>
		<pubDate>Fri, 11 Apr 2008 14:58:46 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11827</guid>
		<description>Hagen,

Thanks. I moved the bug to the SDK feature and added my vote.
http://bugs.adobe.com/jira/browse/SDK-15268

Peter</description>
		<content:encoded><![CDATA[<p>Hagen,</p>
<p>Thanks. I moved the bug to the SDK feature and added my vote.<br />
<a href="http://bugs.adobe.com/jira/browse/SDK-15268" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-15268</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hagen</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11756</link>
		<author>Hagen</author>
		<pubDate>Fri, 11 Apr 2008 08:56:33 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11756</guid>
		<description>Peter,

i have provided a bug request at adobe key: FB-12399.

best regards

Hagen</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>i have provided a bug request at adobe key: FB-12399.</p>
<p>best regards</p>
<p>Hagen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11658</link>
		<author>peterd</author>
		<pubDate>Thu, 10 Apr 2008 15:32:15 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11658</guid>
		<description>Hagen,

Not that I know of (but that isn't saying much -- you'd have better luck asking on FlexCoders). There may be a way to extend the ButtonBar class and add this functionality in somewhere.

You could do this if you were using a ViewStack as a data provider though:
&lt;pre class="code"&gt;
&#60;mx:ButtonBar id="buttonBar2" dataProvider="{viewStack}" /&#62;
&#60;mx:ViewStack id="viewStack"&#62;
    &#60;mx:VBox label="One" /&#62;
    &#60;mx:VBox label="Two" enabled="false" /&#62;
    &#60;mx:VBox label="Three" enabled="false" /&#62;
    &#60;mx:VBox label="Four" /&#62;
&#60;/mx:ViewStack&#62;
&lt;/pre&gt;

Feel free to file a bug/enhancement request in the public Flex bug base though (&lt;a href="http://bugs.adobe.com/flex/" rel="nofollow"&gt;http://bugs.adobe.com/flex/&lt;/a&gt;). Heck, if you post the bug number here, I'll vote for the bug. :)

Peter</description>
		<content:encoded><![CDATA[<p>Hagen,</p>
<p>Not that I know of (but that isn&#8217;t saying much &#8212; you&#8217;d have better luck asking on FlexCoders). There may be a way to extend the ButtonBar class and add this functionality in somewhere.</p>
<p>You could do this if you were using a ViewStack as a data provider though:</p>
<pre class="code">
&lt;mx:ButtonBar id="buttonBar2" dataProvider="{viewStack}" /&gt;
&lt;mx:ViewStack id="viewStack"&gt;
    &lt;mx:VBox label="One" /&gt;
    &lt;mx:VBox label="Two" enabled="false" /&gt;
    &lt;mx:VBox label="Three" enabled="false" /&gt;
    &lt;mx:VBox label="Four" /&gt;
&lt;/mx:ViewStack&gt;
</pre>
<p>Feel free to file a bug/enhancement request in the public Flex bug base though (<a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a>). Heck, if you post the bug number here, I&#8217;ll vote for the bug. :)</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hagen</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11646</link>
		<author>Hagen</author>
		<pubDate>Thu, 10 Apr 2008 14:26:50 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-11646</guid>
		<description>Hi, 

the example works great. Is there a way to enable/disable items within the building phase of the component? I tried this but without any results ... 

&lt;pre class="code"&gt;
var buttonBarItemsArr:Array = [

   {label:'item1', enabled:false}, 
   {label:'item2', enabled:true}
];

myButtonBar.dataProvider = buttonBarItemsArr;
&lt;/pre&gt;

Thanks Hagen</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>the example works great. Is there a way to enable/disable items within the building phase of the component? I tried this but without any results &#8230; </p>
<pre class="code">
var buttonBarItemsArr:Array = [

   {label:'item1', enabled:false},
   {label:'item2', enabled:true}
];

myButtonBar.dataProvider = buttonBarItemsArr;
</pre>
<p>Thanks Hagen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moshe</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6151</link>
		<author>Moshe</author>
		<pubDate>Wed, 16 Jan 2008 21:56:44 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6151</guid>
		<description>Thanks Peter :)</description>
		<content:encoded><![CDATA[<p>Thanks Peter :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6036</link>
		<author>peterd</author>
		<pubDate>Sat, 12 Jan 2008 19:14:03 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6036</guid>
		<description>Moshe,

You can find the tag archive at &lt;a href="http://blog.flexexamples.com/tags/" rel="nofollow"&gt;&lt;u&gt;http://blog.flexexamples.com/tags/&lt;/u&gt;&lt;/a&gt;. I removed it from the right column since it was taking up way too much space and throwing the rest of the formatting off.

Peter</description>
		<content:encoded><![CDATA[<p>Moshe,</p>
<p>You can find the tag archive at <a href="http://blog.flexexamples.com/tags/" rel="nofollow"><u><a href="http://blog.flexexamples.com/tags/" rel="nofollow">http://blog.flexexamples.com/tags/</a></u></a>. I removed it from the right column since it was taking up way too much space and throwing the rest of the formatting off.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moshe</title>
		<link>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6030</link>
		<author>Moshe</author>
		<pubDate>Sat, 12 Jan 2008 14:51:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/01/10/disabling-individual-buttons-on-a-flex-buttonbar-control/#comment-6030</guid>
		<description>Hi,

I  really found this website as a valuable resource but I think since you add the search  functionality it is hard to find what you are looking for. I liked it much more in its previous version where you listed all the control and you could pick the example that illustrate this particular control. Right now when I am searching for combobox for example I am getting a lot of non-relevant examples.

I appreciate your effort</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I  really found this website as a valuable resource but I think since you add the search  functionality it is hard to find what you are looking for. I liked it much more in its previous version where you listed all the control and you could pick the example that illustrate this particular control. Right now when I am searching for combobox for example I am getting a lot of non-relevant examples.</p>
<p>I appreciate your effort</p>
]]></content:encoded>
	</item>
</channel>
</rss>
