Double click & afterShowForm

QuestionsDouble click & afterShowForm
Massimo Gagliardi asked 10 years ago

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

3 Answers
Abu Ghufran answered 10 years ago

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>

Massimo Gagliardi answered 10 years ago

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?

Abu Ghufran answered 10 years ago

Emailed you working demo.

Your Answer

12 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?