Hello Abu,
I created a custom button on the row that updates a cell on that row. This works as planned, except for the fact that it doesn’t persist the change. Could you please point me in the right direction?
Partial code: https://gist.github.com/MichielBlotwijk/3a8f9d6a6f19327dfd9bf1abd4601b05
regards,
Michiel
2 Answers
The setCell function only change on client side. To save on database you need to post ajax call.
Refer this code: http://phpgrid.org/demo/demos/apps/todos.phps line 541.
Alter above code and you need to set:
request[‘oper’] = ‘edit’; // -> operation
request[‘id’] = id; // -> row id
request[‘Archief’] = -1; // -> field with value
then post ajax like in above code.
Your Answer