listData:BaseListData [read-write]
Implementation of IDropInListItemRenderer interface.
Implementation
public function get listData():BaseListData
public function set listData(value:BaseListData):void
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<![CDATA[
//--------------------------------------------------------------------------------
//
// Imports
//
//--------------------------------------------------------------------------------
import mx.collections.ArrayCollection;
//--------------------------------------------------------------------------------
//
// Variables
//
//--------------------------------------------------------------------------------
// Sample Data..
[Bindable]
private var initDG:ArrayCollection = new ArrayCollection([
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.doc"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.kkk"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.exe"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.gif"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.jpg"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.ppt"},
{Artist:'Pavement', Album:'Slanted and Enchanted',
Price:11.99, Sample: "FileName.pdf"},
{Artist:'Pavement', Album:'Brighten the Corners',
Price:11.99, Sample: "" }]);
//--------------------------------------------------------------------------------
//
// Event Handlers
//
//--------------------------------------------------------------------------------
private function init():void
{
}
]]>
</mx:Script>
<mx:Panel>
<mx:DataGrid id="myGrid"
width="400" height="280"
dataProvider="{initDG}"
variableRowHeight="true">
<mx:columns>
<mx:DataGridColumn dataField="Artist"/>
<mx:DataGridColumn dataField="Sample"/>
<mx:DataGridColumn width="50" dataField="Sample"
itemRenderer="org.openzet.controls.dataGridClasses.IconRenderer"/>
</mx:columns>
</mx:DataGrid>
</mx:Panel>
</mx:Application>