Remove data[0] in post data?

Remove data[0] in post data?

tgraysontgrayson Posts: 5Questions: 1Answers: 0

I need the AJAX request to map to a Microsoft MVC action, so I need the post data to match the signature. That means I need to change data[0][BatchId] to be just "BatchId". Can this be done?

Answers

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin

    Use ajax.data as a function if you wish to manipulate the data sent by DataTables when it makes its Ajax request for data.

    Allan

This discussion has been closed.