topical media & game development

talk show tell print

professional-flex-code-07-ItemEditor.mx

professional-flex-code-07-ItemEditor.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
          <mx:Script>
                  <![CDATA[
                          
                          [Bindable]
                          private var myDP:Array = [
                                  {label: "Oranges", date: new Date()},
                                  {label: "Apples", date: new Date()},
                                  {label: "Pears", date: new Date()}
                          ];
                          
                  ]]>
          </mx:Script>
          
          <mx:DataGrid dataProvider="{myDP}" editable="true" variableRowHeight="true">
                  <mx:columns>
                          <mx:DataGridColumn dataField="label" headerText="Label" />
                          <mx:DataGridColumn dataField="date" headerText="Date"
                                  itemRenderer="mx.controls.DateField" editorDataField="selectedDate" />
                  </mx:columns>
          </mx:DataGrid>
          
  </mx:Application>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.