In a very conventional corporate app with View, Insert, Edit, Delete
modes, certain datagrids must be view only in Edit mode. It really
surprises me that on a datagrid, with editable=false, enabled=false,
selectable=false, the checkboxes in a grid column can still be clicked.
I am creating the checkboxes with:

<mx:DataGridColumn id="dgcRmv" headerText="Remove" width="100">
    <mx:itemRenderer>
       <mx:Component>
          <mx:CheckBox
             selected="{data.rmvDir == 'true'}" paddingLeft="10"
             labelPlacement="right"
             change="outerDocument.cbRmvDirHandler(event)"/>
          </mx:Component>
    </mx:itemRenderer>
</mx:DataGridColumn>

With everything turned off on the grid, the cb can be checked and the
handler runs. Appreciate a solution to this. TIA,

Mic.




Reply via email to