flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Flex - Disable an item with checkbox in List
Date Fri, 17 Jun 2016 17:46:42 GMT
Maybe this? 

On 6/17/16, 9:11 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>I have a List with checkboxes. I wan to disable some items based on List's
>Here is my List:
><mx:List id="templateList" width="100%" alternatingItemColors="[#EEEEEE,
>labelField="Name" selectedIndex="0">
><?xml version="1.0" encoding="utf-8"?>
><mx:CheckBox selectedField="isSelected" change="onChange(event)"
>private function onChange(event:Event):void
>data.isSelected = !data.isSelected;
>var _changeComplete:Event = new Event("filterChangeComplete", true);
>I have set data.enabled to false for all items just for testing. None of
>checkboxes come out disabled. The data provider is an AraayCollection and
>Any idea what is missed?

View raw message