DateField Item Editor : DateField « Components « Flex






DateField Item Editor

DateField Item Editor
       
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>
        
            
            [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>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Use DateField to let user choose dateUse DateField to let user choose date
2.DateField form itemDateField form item
3.Use ActionScript to set initial selected date for a DateField controlUse ActionScript to set initial selected date for a DateField control
4.DateField renderer for ListDateField renderer for List
5.Date Entry with DateFieldDate Entry with DateField
6.Use an array to set the disabledDays property for DateField.Use an array to set the disabledDays property for DateField.
7.Using DateField as List EditorUsing DateField as List Editor
8.Set the disabledDays property in two different ways: using tags and using tag attributesSet the disabledDays property in two different ways: using tags and using tag attributes
9.Set the formatString property to "MM/DD/YY" to display a two-digit yearSet the formatString property to
10.Use Date from a Calendar ControlUse Date from a Calendar Control