Server side processing - form data order as name
Server side processing - form data order as name
markzzz
Posts: 49Questions: 8Answers: 1
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
2
up in thecolumns
array that is also submitted. e.g.The
name
parameter for the column comes fromcolumns.name
, if you set that, anddata
fromcolumns.data
(which you probably already have).Allan
It works, thanks!