The event occurs event occurs after data has been selected from the database but before its outputting to client.
<cfset conn.event.attach("beforeRender",handlerFunc)>
Parameters handlerFunc:
Availability:
Sample:
<cffunction name="color_rows">
<cfargument name="row">
<cfif ARGUMENTS.row.get_index() mod 2>
<cfset ARGUMENTS.row.set_row_color("red")>
</cfif>
</cffunction>
<cfset grid.event.attach("beforeRender",color_rows)>
Back to top