topical media & game development
professional-flex-code-07-ItemEditorSizePosition.mx
professional-flex-code-07-ItemEditorSizePosition.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: "My Article 1", datePosted: new Date(2006, 10, 23)},
{label: "My Article 2", datePosted: new Date(2006, 7, 20)},
{label: "My Article 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>
(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.