Redirct after insert

QuestionsRedirct after insert
Matt asked 3 years ago

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
Abu Ghufran Staff answered 3 years ago

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)

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 3 years ago

Hello,

Another solution is to use this code:

$grid["onAfterSave"] = "(function(){window.open('another_grid_page_here.php','_parent');})();";
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

14 + 18 =

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?