title: Flex 3 - List - checkbox itemrenderer enabled property
body: <p>I have a list that uses a checkbox itemrenderer.  The dataprovider is a collection of people.  When I load the data from a file, each list item shows the person's name (last, first -- labelFunction), and the checkbox's selected property shows the person's <strong>included property</strong>.  I.e.,</p>
  
  <p>Smith, Doug - [x]
  Williams, Bob - [ ]
  Morris, Anne - [x]</p>
  
  <p>However, each person also has an <strong>active</strong> property.  I want to disable the checkbox for people who are inactive (meaning, "you can't include inactive people").  I have tried several methods to get this to work, including what's suggested here <a href="http://forums.adobe.com/thread/416786" rel="nofollow">http://forums.adobe.com/thread/416786</a> to do the same thing in a datagrid.  However, none of them work and all the checkboxes are enabled regardless of the person's <strong>active</strong> status.  Here is my basic code:</p>
  
  <pre><code>&lt;mx:List id="peopleIncludedList"
       dataProvider="{someProvider}"
       labelFunction="peopleLabelFunction"&gt;
       &lt;mx:itemRenderer&gt;
            &lt;mx:Component&gt;
                 &lt;mx:CheckBox change="onChange(event)"
                      selected="{outerDocument.isIncluded(data)}"&gt;
                      &lt;mx:Script&gt;
                           &lt;![CDATA[
  
                                private function onChange(e:Event):void
                                {
                                     ...
                                }
                           ]]&gt;
                      &lt;/mx:Script&gt;
                 &lt;/mx:CheckBox&gt;
            &lt;/mx:Component&gt;
       &lt;/mx:itemRenderer&gt;
  &lt;/mx:List&gt;
  </code></pre>
  
  <p>Any help on this would be greatly appreciated.  Thank you.</p>
  
  <p>-- Ian</p>