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
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