On_update not called for inline edit?

QuestionsOn_update not called for inline edit?
Richard Kooijman asked 12 years ago

Hi Abu,
I have set following event:$e["on_update"] = array("update_company", null, true);
In the function "update_company" I'm changing some values. This is working well for the edit dialog, but the values are not changed when using inline edit. Do we need to set other params as well to call the "on_update" event for inline edit?
Thanks and br. Richard

2 Answers
Abu Ghufran answered 12 years ago

Hello,

It works on inline edit too, as ajax call is same for both cases.
You can try debugging by putting phpgrid_error("test $sql"); in callback. It will show as an error on grid.

As an Alternate, try checking thru firebug and check response.

If you are using celledit mode, only edited cell and PK (first column) is available on callback.

Richard Kooijman answered 12 years ago

Hi Abu,
You are right, showing the error message helped me to fix the problem.
Thanks.
Br. Richard

Your Answer

18 + 8 =

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?