problem with add/edit model

Questionsproblem with add/edit model
Mukti asked 5 days ago

On insert: Operation not allowed

On edit: The edit model does not gets closed.

 

Fire bug attached: https://imgur.com/a/ycJlF4M

1 Answers
Abu Ghufran Staff answered 5 days ago

​Ticket solved via remote session.
Issue was, In custom events (if third param is set to false) the grid does not perform insert or update operations and you have to code your own database code. And also return JSON string at the end of function to show the result of insert / update (as in docs) — which was missing.

https://www.gridphp.com/docs/grid-events/

$res = array("id" => 0, "success" => false); 
echo json_encode($res); 
die;
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

3 + 2 =

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?