If you meant this:
<mx:Canvas>
<mx:CheckBox
visible="{data.headerText2 != ''}"
change="{outerDocument._columns2[listData.rowIndex].visible = selected}">
</mx:CheckBox>
</mx:Canvas>

Then now it complains that properties selected and listData are undefined.


On Fri, Jul 3, 2015 at 12:09 AM Alex Harui <[email protected]> wrote:

> 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" <[email protected]> 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
>
>

Reply via email to