How to set correct field name in order object parameters?
How to set correct field name in order object parameters?
mamadsoli
Posts: 28Questions: 5Answers: 1
I want to use from Order
in server side
Datatables.net JQuery.
How to set field name in order[0][name]:
?
...
order[0][column]: 0
order[0][dir]: asc
order[0][name]:
order[1][column]: 1
order[1][dir]: asc
order[1][name]:
...
But I need fill order[0][name]:
and order[N][name]:
in server...
Looks like this:
...
order[0][column]: 0
order[0][dir]: asc
order[0][name]: id
order[1][column]: 1
order[1][dir]: asc
order[1][name]: firstName
...
Thanks
This question has an accepted answers - jump to answer
Answers
Use
columns.name
to set the name parameter. Currently it is only used in the server-side processing data parameters and as acolumn-selector
.Allan
Thanks a lot