Server side processing - form data order as name
Server side processing - form data order as name
Hi,
is there a way to send within the payload of ajax request (server side processing) the "name" of the column, not the progressive number?
I see something like this:
order[0][column]: 2
order[0][dir]: asc
where 2 on server means "nothing" (it will be somethings like "Surname", "Region", "Country", and so on).
Can I set the name of the column instead of the progressive number on the request?
This discussion has been closed.
Replies
At the moment, what you need to do is look that
2up in thecolumnsarray that is also submitted. e.g.The
nameparameter for the column comes fromcolumns.name, if you set that, anddatafromcolumns.data(which you probably already have).Allan
It works, thanks!