Is there a way to redirect to another page after doing an insert from the import option. For example, the user copies data from excel, pastes into the import dialog, confirms it looks correct then clicks next and close. After clicking close it redirects them to another page.
This works fine for individual adds, is there a variation for import?
//$grid[“onAfterSave”] = “window.open(‘another_grid_page_here.php’,’_parent’);”;
2 Answers
Hi,
Currently It’s not supported. You can however edit code inside jqgrid_dist.php and modify the function ‘jqgrid_process_import’ (onclose event function callback)
Hello,
Another solution is to use this code:
$grid["onAfterSave"] = "(function(){window.open('another_grid_page_here.php','_parent');})();";
Your Answer