Add Comment
Adding an alternating Image to CFGRID
ColdFusion Tutorial #35
This tutorial is the extension to my previous tutorial.
This tutorial is using the "cfdocexamples" datasource.
In this tutorial "Contract" column has the boolean data in the format of "Y/N".
In grid the "Tick" images shown if the value of contract column is "Y" otherwise it display the "Cross" image.
demo.cfm
When myf() is called by the init(), it loops over the whole data of contract column.so if the value of contract column found "Y" it return the "right" image otherwise it return the "cross" image
data.cfc
The cfc is just a normal CFC, only requirement is that the methods you wish to call have an access type of "remote".Also if you are returning query data for Coldfusion8 HTML GRID then you have to use the QueryConvertForGrid().
Demo
See this code running!
Download
Download this code as a zip!
Comments
There are no comments!Click button to add a comment
Author
Prashant Gupta