row disapear after update !
row disapear after update !
Hello,
I 've got a problem with row updating in editor.
When I edit a row, after closing the editor frame, edited line disappear form the list. I do'nt touch anything special, I just took examples and try to work on.
what could be the problem ? I didn't make any filters :(
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
well I think it's probably what I return to the datatable after creating or editing one row that cause my problem.
datatable data :
data.resident is for editor
data.resident_full is for datatable (with full name value)
$_POST data send by editor :
and finally what I return after editing :
Have I anything wrong ? because after editing a row, the row disapear from datatable until I reload the page.
Thanks
Hi,
The
data
parameter that is returned is expected to be an array, not an object. Are you able to modify your server-side return to match what Editor expects?Thanks,
Allan
Hi allan,
so bad I am not to see that. Of course there is no problem for returning an array.
I will try this morning and say if it is ok, thanks a lot.
EDIT : wonderful, it works perfectly, thanks again :)
Excellent - good to hear. Thanks for the feedback :-)
Allan