<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using a CheckBox control as a list item renderer in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Senling</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-8168</link>
		<dc:creator>Senling</dc:creator>
		<pubDate>Wed, 28 Jul 2010 14:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-8168</guid>
		<description>I just having the arraycollection to be listed in checkbox.


&lt;!-- http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/ --&gt;

 
    
        
        
 
    &lt;!----&gt;
 
    
        
            
                
                    
                        
                            
                        
                    
                
            
        
        
            
        
    
 
    
 


Issue on initial selection of the check box.</description>
		<content:encoded><![CDATA[<p>I just having the arraycollection to be listed in checkbox.</p>
<p><!-- <a href="http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/" rel="nofollow">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/ &#8211;></p>
<p>    &lt;!&#8212;-&gt;</p>
<p>Issue on initial selection of the check box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-7667</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 10 May 2010 02:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-7667</guid>
		<description>What about if I want to have a &quot;Unckeck All&quot; button?? How do I uncheck the comboboxes? How do I enter in the ItemRenderer&gt;Componente to uncheck it?</description>
		<content:encoded><![CDATA[<p>What about if I want to have a &#8220;Unckeck All&#8221; button?? How do I uncheck the comboboxes? How do I enter in the ItemRenderer&gt;Componente to uncheck it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-7666</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Mon, 10 May 2010 02:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-7666</guid>
		<description>Hi PK, 
Did you found a solution to uncheck the checkbox in te datagrid by code. If I remove the Item the checkbox are still checked and do weird things.</description>
		<content:encoded><![CDATA[<p>Hi PK,<br />
Did you found a solution to uncheck the checkbox in te datagrid by code. If I remove the Item the checkbox are still checked and do weird things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay Anand Mareddy</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-7195</link>
		<dc:creator>Vijay Anand Mareddy</dc:creator>
		<pubDate>Mon, 08 Mar 2010 20:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-7195</guid>
		<description>&lt;pre lang=&quot;actionscript3&quot;&gt;
public function selectAll():void {
            var _arr:Array = [];
            for ( var i:int=0; i &lt; super.dataProvider.length; i++ ) {
                _arr.push(i);
                var item:Object = super.dataProvider[i] as Object;                    
                if(item.hasOwnProperty(selectedField)){                        
                    if( item[selectedField] == false){            
                        item[selectedField] = true;                    
                    }
                }//if
            }//for
            super.selectedIndices = _arr;
        }//selectAll
        
        public function deselectAll():void {
            for ( var j:int=0; j &lt; super.dataProvider.length; j++ ) {
                var item:Object = super.dataProvider[j] as Object;                    
                if(item.hasOwnProperty(selectedField)){                        
                    if(item[selectedField] == true){                                
                        item[selectedField] = false;                            
                    }
                }//                    
            }//for
            super.selectedIndices = [];            
        }//deselectAll
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> selectAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #6699cc; font-weight: bold;">var</span> _arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span> <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>dataProvider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                _arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
                <span style="color: #6699cc; font-weight: bold;">var</span> item<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> = <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>dataProvider<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>                    
                <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">hasOwnProperty</span><span style="color: #000000;">&#40;</span>selectedField<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>                        
                    <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> item<span style="color: #000000;">&#91;</span>selectedField<span style="color: #000000;">&#93;</span> == <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>            
                        item<span style="color: #000000;">&#91;</span>selectedField<span style="color: #000000;">&#93;</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>                    
                    <span style="color: #000000;">&#125;</span>
                <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//if</span>
            <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//for</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>selectedIndices = _arr<span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//selectAll</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> deselectAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span> <span style="color: #6699cc; font-weight: bold;">var</span> j<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> j <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>dataProvider<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> j<span style="color: #000066; font-weight: bold;">++</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                <span style="color: #6699cc; font-weight: bold;">var</span> item<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> = <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>dataProvider<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>                    
                <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>item<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">hasOwnProperty</span><span style="color: #000000;">&#40;</span>selectedField<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>                        
                    <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>item<span style="color: #000000;">&#91;</span>selectedField<span style="color: #000000;">&#93;</span> == <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>                                
                        item<span style="color: #000000;">&#91;</span>selectedField<span style="color: #000000;">&#93;</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>                            
                    <span style="color: #000000;">&#125;</span>
                <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//                    </span>
            <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//for</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>selectedIndices = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>            
        <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//deselectAll</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: KevM</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-6769</link>
		<dc:creator>KevM</dc:creator>
		<pubDate>Wed, 13 Jan 2010 11:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-6769</guid>
		<description>How do I change it so the i&#039;m using an XML as the dataprovider rather than the array collection?
Thanks</description>
		<content:encoded><![CDATA[<p>How do I change it so the i&#8217;m using an XML as the dataprovider rather than the array collection?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dishanka</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-6535</link>
		<dc:creator>Dishanka</dc:creator>
		<pubDate>Mon, 07 Dec 2009 10:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-6535</guid>
		<description>well example bro. This is the example which is what i wanted. Thanks so much</description>
		<content:encoded><![CDATA[<p>well example bro. This is the example which is what i wanted. Thanks so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MXPain</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-6409</link>
		<dc:creator>MXPain</dc:creator>
		<pubDate>Thu, 19 Nov 2009 23:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-6409</guid>
		<description>Thank, very useful tutorial)</description>
		<content:encoded><![CDATA[<p>Thank, very useful tutorial)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-5987</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 10 Oct 2009 02:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-5987</guid>
		<description>Crap,  those are two different things, namespaces and packages,  nevermind.</description>
		<content:encoded><![CDATA[<p>Crap,  those are two different things, namespaces and packages,  nevermind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-5986</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 10 Oct 2009 02:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-5986</guid>
		<description>Meant &quot;Peter&quot;, not &quot;Alex&quot;. Not sure where I got that from.</description>
		<content:encoded><![CDATA[<p>Meant &#8220;Peter&#8221;, not &#8220;Alex&#8221;. Not sure where I got that from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/comment-page-1/#comment-5985</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 10 Oct 2009 02:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/#comment-5985</guid>
		<description>Hi Alex, thanks for the great example.

Just a simple question: In your array declaration, you have, for each element:

                   vo:ListItemValueObject

But the  in the ListItemValueObject.as file, there is just &quot;package&quot;, not &quot;package vo&quot;.     Just curious about this little part.  I&#039;m a Flash/Flex newb by the way.

Steve</description>
		<content:encoded><![CDATA[<p>Hi Alex, thanks for the great example.</p>
<p>Just a simple question: In your array declaration, you have, for each element:</p>
<p>                   vo:ListItemValueObject</p>
<p>But the  in the ListItemValueObject.as file, there is just &#8220;package&#8221;, not &#8220;package vo&#8221;.     Just curious about this little part.  I&#8217;m a Flash/Flex newb by the way.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
</channel>
</rss>

