Item Editor Size and Position : DataGrid ItemEditor « Grid « Flex






Item Editor Size and Position

Item Editor Size and Position
           
<?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: "1", datePosted: new Date(2006, 10, 23)},
                {label: "2", datePosted: new Date(2006, 7, 20)},
                {label: "3", datePosted: new Date(2006, 5, 11)}
            ];
            
      
    </mx:Script>
    
    <mx:DataGrid dataProvider="{myDP}" editable="true" variableRowHeight="true" width="50%">
        <mx:columns>
            <mx:DataGridColumn dataField="label" headerText="Label" />
            <mx:DataGridColumn dataField="date" headerText="Date"
                itemRenderer="mx.controls.DateField" editorDataField="selectedDate" editorXOffset="10" />
        </mx:columns>
    </mx:DataGrid>
    
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use ComboBox as itemEditorUse ComboBox as itemEditor
2.Use an inline item editor, rather than a componentUse an inline item editor, rather than a component
3.Using a DateField or ComboBox control as a drop-in item editorUsing a DateField or ComboBox control as a drop-in item editor
4.Define an event listener for the itemEditEnd event that uses the NumberFormatter class to format cell valueDefine an event listener for the itemEditEnd event that uses the NumberFormatter class to format cell value
5.Use itemEditEnd event to ensure that the user did not enter an empty StringUse itemEditEnd event to ensure that the user did not enter an empty String
6.To prevent cell editing, call the preventDefault() method from within your event listenerTo prevent cell editing, call the preventDefault() method from within your event listener
7.Show an event listener for itemEditEnd event using column index, row index, and value propertiesShow an event listener for itemEditEnd event using column index, row index, and value properties
8.Inline CheckBox Editor With OffsetsInline CheckBox Editor With Offsets
9.Returning data from an item editorReturning data from an item editor
10.Use mx.controls.NumericStepper as DataGridColumn editorUse mx.controls.NumericStepper as DataGridColumn editor
11.use to define an inline item editoruse <mx:Component> to define an inline item editor
12.inline item editor contains a single control that supports the data propertyinline item editor contains a single control that supports the data property
13.DataGrid Dropin Editor
14.Inline DataGrid EditorInline DataGrid Editor
15.Cancel the edit action and maintain edit stateCancel the edit action and maintain edit state
16.Get cell index in cell onEditEnd eventGet cell index in cell onEditEnd event
17.Edited Row and columnEdited Row and column
18.Item Edit Beginning EventItem Edit Beginning Event
19.Item Edit End EventItem Edit End Event