I already had a problem with the double click (Image & double cick: if you invoke the edit dialog with a double click on a row that has an image column then in the edit dialog doesnt appear the image path and the delete button but only a text box in which there is the image name).
Now I have another problem.
With the double click, in fact, isn't possible to have a correct execution of afterShowForm function.
Anybody has a solution?
Thanks in advance
All edit dialog settings including afterShowForm are passed in 3rd param.
$g is grid object.
<script>
var opts = {
'ondblClickRow': function (id) {
jQuery(this).jqGrid('editGridRow', id, <?php echo json_encode_jsfunc($g->options["edit_options"])?>);
}
};
</script>
…
<div style="margin:10px">
<?php echo $out?>
</div>
This is my call:
var opts = {
'ondblClickRow': function (id) {
var rowid = jQuery(this).jqGrid('getGridParam','selrow');
jQuery(this).jqGrid('editGridRow', rowid, <?php echo json_encode_jsfunc($g->options["edit_options"])?>);
}
};
it's same of your.
do you have some other suggestion?