Check documentation for the latest version 6.0 of dhtmlxSuite beforeRender DHTMLX Docs

beforeRender

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:

  • dataItem - DataItem Object

Availability:

  • Available for Grid, TreeGrid, Tree, Combo, Scheduler, DataView, Chart, Form

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