how to refine actions when the user clicks on column titles.
we'll show an "Hello World!" message box when the user clicks on "Lastname".
// Column 1 will print "hello world" on click
g.set_click_cb ( 1, "alert ( 'hello world!' )" );
// Column "Lastname" does not produce any event on click
g.set_click_cb ( 2, -1 );
how to call a function each time the grid is rendered.
To set a callback each time the grid is rendered on screen,
simply refine the "onrender" attribute:
// A callback for each render event
g.onrender = rendered;
Callback function should get one argument (the grid instance) like this one:
function rendered ( grid )
{
alert ( "Grid: " + grid.id + " rendered" );
}