Adding an image to a CFGRID
Submitted by Depot Kite on Tue, 2007-05-01 12:33.
The trick is to bind a column in the grid to a CfFormItem.
<cfform name="myform" format="Flash" height="450" width="600" >
<cfgrid name= "grid" query="properties" height="200">
<cfgridcolumn name="city" header="City">
<cfgridcolumn name="photo" header="Photo">
</cfgrid>
<!--- show the picture in an html cfforitem
paragraph is added because Firefox sometimes fail to load the picture --->
<cfformitem type="html" height="200" width="300"
bind="{'<p><img src=\'images/'+grid.selectedItem.photo+ '\'></p>'}"></cfformitem>
</cfform>

Recent comments
11 weeks 3 days ago
11 weeks 3 days ago
14 weeks 6 days ago
15 weeks 4 days ago
15 weeks 4 days ago
17 weeks 5 days ago
30 weeks 4 days ago
30 weeks 4 days ago
30 weeks 6 days ago
31 weeks 7 hours ago