flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Show/hide checkbox in grid
Date Fri, 03 Jul 2015 05:09:28 GMT
Wrap CheckBox in something else like a Canvas  The DataGrid uses the
visible property when recycling so you can’t use it for other purposes.

On 7/2/15, 12:27 PM, "mark goldin" <markzolotoy@gmail.com> wrote:

>I have the following datagrid:
><mx:DataGridColumn dataField="visible2"
>headerText=""
>textAlign="center"
>width="35">
><mx:itemRenderer>
><mx:Component>
><mx:CheckBox visible="{data.headerText2 != ''}" />
></mx:Component>
></mx:itemRenderer>
></mx:DataGridColumn>
><mx:DataGridColumn headerText="Name"
>dataField="headerText2" />
>
>The problem is it does not hide the checkbox when data.headerText2 is
>empty. But if I set enabled property to the same condition it would
>disable
>it. Any idea how to hide the checkbox?
>
>Thanks

Mime
View raw message