Why Datatable Editor sends all parameter on delete/remove action?
Why Datatable Editor sends all parameter on delete/remove action?

I have datatable editor version 1.5
When I am going to delete the record after selecting the row, it sends all the row parameters to server while i think it should send on ids to delete records.
I have no problem with issue for single record , but while I am going to delete multiple records, I got issue with request parameter/memory limit of request parameter.
Would you please let me know your suggestions?
This discussion has been closed.
Answers
The Editor libraries don't use the values sent, other than the primary key values on delete, but sending all values was a frequently asked for feature, so we added it in.
Are you using our libraries on the server-side or your own?
Allan
I have used your libraries on server-side (PHP).
What you can do is to use
preSubmit
to delete the parameters that you don’t want to send - e.g.could be reduced to just
or even:
and the delete would operate in just the same way. The key part for the delete is the index in the
data
property. So something like:should do the job.
I haven’t actually tried this locally, but I think that should be okay.
Allan