OS3 Grid Example 6 - Rows Selection
OS3Grid Example 6 - Rows selection
By Fabio Rotondo - fsoft (@) sourceforge ( dot ) net
select / deselect rows by simply
clicking on a row number:
// Enable row selection
g.set_row_select ( true );
set a callback:
function rowsel ( grid, row, selected )
{
alert ( "Row sel on grid: " + grid + " - row num: " + row + " - sel: " + selected );
}
and set the callback to the grid:
g.onrowselect = rowsel;