Hi,
have two questions.
First in "default edit" demo example the vertical scroll is position to bottom of the grid, how set it on top?
Second i invoke my index.php file passing a variable in url if possibile on adding new record insert the value of variable (get with php command) into a field of the table set for the grid?
Thank you and good work!
Leonardo
1 Answers
To set scroll top, you can set focus on first cell.
// set focus on first cell
setTimeout('jQuery(".editable:first").focus()',100);
…
You can set the passed querystring variable using defaultValue.
e.g.
$col["edit_options"]["defaultValue"] = $myvar;
It will only be present at time of inserting a record.
Refer docs for 'defaultValue' help.
Your Answer