CheckBox renderer for DataGridColumn : CheckBox « Components « Flex






CheckBox renderer for DataGridColumn

CheckBox renderer for DataGridColumn
       

<?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" itemRenderer="mx.controls.CheckBox" />
        </mx:columns>
        <mx:dataProvider>
          <mx:ArrayCollection>
            <mx:Array>
              <mx:Object title="A" artist="a" rating="5" inFavorites="false" />
              <mx:Object title="B" artist="b" rating="3" inFavorites="true" />
              <mx:Object title="C" artist="c" rating="4" inFavorites="false" />
              <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.Use CheckBox click eventUse CheckBox click event
2.Set checkbox menu item checkedSet checkbox menu item checked
3.Use to define a CheckBox controlUse <mx:CheckBox> to define a CheckBox control
4.Use selected property to create a checked checkboxUse selected property to create a checked checkbox
5.Use addChildAt() to add the CheckBox control to VBoxUse addChildAt() to add the CheckBox control to VBox
6.A form with a CheckBox controlA form with a CheckBox control
7.CheckBox Item RendererCheckBox Item Renderer
8.Register function to a Button control and CheckBox controlRegister function to a Button control and CheckBox control
9.Use CheckBox to control Button enabled stateUse CheckBox to control Button enabled state
10.CheckBox Checked eventCheckBox Checked event
11.Use setChildIndex() to move a CheckBox control down the display listUse setChildIndex() to move a CheckBox control down the display list
12.Using the selected property to generate a checkbox that is checked by defaultUsing the selected property to generate a checkbox that is checked by default
13.Image is not visible until the user selects the checkboxImage is not visible until the user selects the checkbox
14.Inline DataGrid CheckBox EditorInline DataGrid CheckBox Editor
15.Inline DataGrid CheckBox Editor With OffsetsInline DataGrid CheckBox Editor With Offsets
16.CheckBox control named myCB appears when you change to any view state in GroupCheckBox control named myCB appears when you change to any view state in Group
17.ChekcBox with LabelChekcBox with Label