Disable DataGrid cell renderer : DataGrid Renderer « Grid « Flex






Disable DataGrid cell renderer

Disable DataGrid cell renderer
       



<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:VBox>
      <mx:DataGrid editable="false">
        <mx:columns>
          <mx:DataGridColumn headerText="A" dataField="title"/>
          <mx:DataGridColumn headerText="B" dataField="artist"/>
          <mx:DataGridColumn headerText="C" dataField="inFavorites">
            <mx:itemRenderer>
              <mx:Component>
                <mx:CheckBox label="D" enabled="false" />
              </mx:Component>
            </mx:itemRenderer>
          </mx:DataGridColumn>
        </mx:columns>
        <mx:dataProvider>
          <mx:ArrayCollection>
            <mx:Array>
              <mx:Object title="A" artist="a" rating="5" inFavorites="true" />
              <mx:Object title="B" artist="b" rating="3" />
              <mx:Object title="C" artist="c" rating="4" />
              <mx:Object title="D" artist="d" rating="5" inFavorites="true" />
            </mx:Array>
          </mx:ArrayCollection>
        </mx:dataProvider>
      </mx:DataGrid>
  </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Inline item renderer that contains multiple controlsInline item renderer that contains multiple controls
2.NumericStepper renderer and editor for DataGridNumericStepper renderer and editor for DataGrid
3.DateField renderer and editor for DataGridDateField renderer and editor for DataGrid
4.CheckBox renderer and editor for DataGridCheckBox renderer and editor for DataGrid
5.Use Image control as item rendererUse Image control as item renderer
6.Use Component as itemRenderer for DataGridUse Component as itemRenderer for DataGrid
7.Use two data fields in one itemRendererUse two data fields in one itemRenderer
8.Inline Item Renderers for DataGridInline Item Renderers for DataGrid
9.DataGrid Drop In Image RendererDataGrid Drop In Image Renderer
10.Inline DataGrid RendererInline DataGrid Renderer