reload only in edit event (i opened the question with other mail, this is the mail order)

Questionsreload only in edit event (i opened the question with other mail, this is the mail order)
aron asked 5 years ago

Hello, i have this:

$opt2[“onAfterSave”] = “function(){ var selr = jQuery(‘#list1’).jqGrid(‘getGridParam’,’selrow’); jQuery(‘#list1’).trigger(‘reloadGrid’,[{jqgrid_page:1}]); setTimeout( function(){jQuery(‘#list1’).setSelection(selr,true);},500 ); }”;

in the set  on a 2d grid (list2) for when i save, reload in first grid (list1), but the reloading just works with edit event, not  with add and delete event…. why????

this in the rest of code….

$e2[“on_after_insert”] = array(“fff”, null, true);
$e2[“on_after_update”] = array(“fff”, null, true);
$e2[“on_after_delete”] = array(“fff”, null, true);
}
$grid2-> set_events($e2);

function fff(&$data)
{
$id = intval($_GET[“rowid”]);
$sql = “select (GROUP_CONCAT(clientes.nombre ORDER BY clientes.nombre SEPARATOR ‘, ‘)) AS x FROM clientes,tarios WHERE clientes.id=tarios.cliente AND tarios.tipo=’P’ AND tarios.client_id=”.$id;
//phpgrid_error($sql);
global $grid2;
$result = $grid2->get_one($sql);
$x = $result[‘x’];
//phpgrid_error($x);
$grid2->execute_query(“UPDATE inm SET nombre = ‘$x’ WHERE id=”.$id);
}

thanks

1 Answers
Abu Ghufran Staff answered 5 years ago

This feature is supported in full version and may need update.
We don’t find your email address in customers database. Please email me ([email protected]) your order number / payment email address for continued support.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

10 + 20 =

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?