Hi,
I tried this but didnt got any success
<mx:DataGrid dataProvider="{_xlDayData}" height="180" >
<mx:columns>
<mx:DataGridColumn labelFunction="lfDayData" headerText="Day"
width="200" />
<mx:DataGridColumn labelFunction="lfDayData" headerText="High"
width="100" />
<mx:DataGridColumn labelFunction="lfDayData" headerText="Low"
width="100" />
<mx:DataGridColumn labelFunction="lfDayData"
headerText="Image" dataField="image">
<mx:itemRenderer>
<mx:Component>
<mx:Image source="??????????????????"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
Can any one correct this how to retrive the Image
Regards
Praveen
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you set the itemRenderer to mx:Image, and dataField set to
> WeatherImage you should see the image.
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Praveen Saxena
> Sent: Thursday, May 17, 2007 8:39 AM
> To: [email protected]
> Subject: [flexcoders] How to display the Image
>
>
>
>
> Hi,
> Is it possible to put the image in the datagrid after getting the
> the image url from the XML file.
> My sample Xml look like this.
> <WeatherData>
> <Day>Saturday, May 19, 2007</Day>
>
> <WeatherImage>http://www.nws.noaa.gov/weather/images/fcicons/few.jpg
> <http://www.nws.noaa.gov/weather/images/fcicons/few.jpg> </We
> atherImage>
> <MaxTemperatureF>76</MaxTemperatureF>
> <MinTemperatureF>43</MinTemperatureF>
> <MaxTemperatureC>24</MaxTemperatureC>
> <MinTemperatureC>6</MinTemperatureC>
> </WeatherData>
> My requirement is display the image after from the URL specified in
the
> "WeatherImage" tag.
> Thanks & Regards,
> Praveen
>