Do a custom jquery function on edit

QuestionsDo a custom jquery function on edit
Paul Isache asked 11 years ago

Hi Abu,

I want to do a custom jquery function when I edit a row. I want do the an alert
for example when I edit a row. On select it works but i want it on edit.
Is there any way?

1 Answers
Abu Ghufran answered 11 years ago

You can set:

$opt["ondblClickRow"] = "function(id,row,col) { do_ondblclick(id,row,col); }";

$grid->set_options($opt);

And put a JS callback:

<script>
function do_ondblclick(id,row,col)
{
alert('Simulating, double click on id:'+id+', row:'+row+', col:'+col);
}
</script>

Refer demos/editing/custom-events.php

To get a JS callback on dialog based edit,

You can bind 'afterShowForm': refer demos/appearence/dialog-layout.php

$opt["edit_options"]["afterShowForm"] = 'function (form)
{

}';

Your Answer

16 + 4 =

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?