how to edit the grid.
First to set the editable columns:
g.set_col_editable ( 1, "txt" );
g.set_col_editable ( 2, "txt" );
g.set_col_editable ( 3, "txt" );
force the user to insert a valid e-mail by
filtering his/her typing against the given string and by adding a field validator:
g.set_col_valid_chars ( 3, "abcdefghijklmnopqrstuvwxyz@.-0123456789_" );
g.set_col_validation ( 3, check_email );
The
check_email is a form validation function defined inside
form_validators.js.
<script src="form_validators.js" type="text/javascript"></script>
grid rows to be automatically resorted when the user changes grid contents, simply
set this flag to true: