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.

$conn->event->attach("beforeRender",handlerFunc);

Parameters handlerFunc:

Availability:

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

Sample:

function color_rows($row){
    if ($row->get_index()%2)
    $row->set_row_color("red");
}
 
$conn->event->attach("beforeRender","color_rows");
Back to top