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


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


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


<cffunction name="color_rows">
    <cfargument name="row">
    <cfif ARGUMENTS.row.get_index() mod 2>
        <cfset ARGUMENTS.row.set_row_color("red")>
<cfset grid.event.attach("beforeRender",color_rows)>
Back to top