Prevent passing key field with parameters, Edit data[key][fieldname]

Prevent passing key field with parameters, Edit data[key][fieldname]

farhadtablefarhadtable Posts: 47Questions: 27Answers: 1
edited August 2016 in Free community support

I would like to pass custom parameters when I hit update while updating a row.
In the other words my main concern is that the DataTable pass index with filed name in parameter this make a problem for me in server-side
I have attached a picture to show you what I want,
or I think this is because of multi editing.

How can I disable multi editing?
or resolve the mentioned problem?

thanks in advance.

1.jpg 89.8K

This question has an accepted answers - jump to answer

Answers

  • farhadtablefarhadtable Posts: 47Questions: 27Answers: 1

    i would like

  • allanallan Posts: 63,813Questions: 1Answers: 10,516 Site admin
    Answer ✓

    I would like to pass custom parameters when I hit update while updating a row.

    You can use ajax.data to do so, or preSubmit to modify the data submitted to the server.

    In the other words my main concern is that the DataTable pass index with filed name in parameter this make a problem for me in server-side

    The first parameter in the array is the row's ID. You can use legacyAjax to collapse that structure a little.

    Regards,
    Allan

This discussion has been closed.