ItemEditorDropIn
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application
xmlns:mx=”http://www.adobe.com/2006/mxml”
viewSourceURL=”src/ItemEditorDropIn/index.html”
width=”470″ height=”340″
>
<mx:Model id=”artwork” source=”model/artwork.xml”/>
<mx:DataGrid
id=”artGrid”
rowCount=”10″ variableRowHeight=”true”
dataProvider=”{artwork.piece}”
editable=”false”
>
<mx:columns>
<!– Drop-in item renderer: Image control –>
<mx:DataGridColumn
dataField=”image” headerText=”Image”
itemRenderer=”mx.controls.Image”
/>
<mx:DataGridColumn headerText=”Name” dataField=”name”/>
<mx:DataGridColumn headerText=”Price” dataField=”price”/>
<!– Drop-in item editor: NumericStepper control –>
<mx:DataGridColumn
headerText=”Quantity”
dataField=”quantity”
itemEditor=”mx.controls.NumericStepper”
editorDataField=”value”
editorXOffset=”22″
editorYOffset=”25″
editorWidthOffset=”-40″
editorHeightOffset=”-50″
/>
</mx:columns>
</mx:DataGrid>
<!–<mx:LinkButton
textAlign=”center”
label=”Photos (c) 2006 geishaboy500 (CC Attribution License)”
click=”{navigateToURL(new URLRequest('http://www.flickr.com/photos/geishaboy500/'));}”
/>–>
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
]]>
</mx:Script>
</mx:Application>
No comments yet.
Leave a comment
-
Recent
- Flex for the most need to know 10 things
- Using Action Script Bounce the ball
- Adobe Flex interview questions with answers
- Flex Interview Questions
- Getting image form Xml using repeater
- Tittle window using with an effect
- Mask image album
- Setting style for VScrollBar
- HorizontalList image gallery
- Add many videos in datagrid
- Using states getting columns in datagrid in runtime
- Runtime datagrid
-
Links