Server Side Processing POST to Server?

Server Side Processing POST to Server?

fchateaufchateau Posts: 5Questions: 2Answers: 0

When using Server Side Processing, can I get DataTables to POST to the server (rather than send all those parameters in the querystring)?

This question has an accepted answers - jump to answer

Answers

  • fchateaufchateau Posts: 5Questions: 2Answers: 0

    Never mind. Found it.

  • fchateaufchateau Posts: 5Questions: 2Answers: 0

    You set up your Ajax Options just like in a jQuery POST, or at least I think that should work.

  • allanallan Posts: 62,312Questions: 1Answers: 10,225 Site admin
    Answer ✓
  • fchateaufchateau Posts: 5Questions: 2Answers: 0
    $(document).ready(function () {
        var table = $("#client-admin").DataTable({
            processing: true,
            serverSide: true,
            ajax: {
                url: "/ClientAdmin/EmployeeData",
                dataType: "json",
                method: "POST"
            }
        });
    });
    
This discussion has been closed.