Skip to content

Force grid to reload the after update

Use event "jqGridAddEditAfterSubmit" to trigger grid reload after every submit.

// trigger the grid to reload after submit
$afterSubmit = <<<AFTERSUBMIT
function (event, status, postData)
{
    var grid = jQuery("#TABLE_NAME");
    grid.trigger("reloadGrid");
}
AFTERSUBMIT;
$dg->add_event("jqGridAddEditAfterSubmit", $afterSubmit);

Feedback and Knowledge Base