How to send customize request parameters for sorting and pagination, i.e. on each draw ?

How to send customize request parameters for sorting and pagination, i.e. on each draw ?

sshankariyasshankariya Posts: 2Questions: 0Answers: 0

Hi,

i am using datatable for server side ajax data wherein, when I am sorting a column the column index parameter named iSortCol_0=5(example) is sent across the server.
At server side, sorting is done on basis of column name and sort order.
But from below parameter list,instead of column name, column index is going to server and bcz of which proper sorting result is not coming.
Can any one please help me out of this situation ?

parameter list :
draw 3
enddate 01/01/2014
length 10
order[0][column] 0
order[0][dir] asc

same thing happening for pagination.
At server side am looking for pazesize request param but from here its going as "Length".

So can any tell me how to send customize request parameters on click of pagination,sorting and show records per page.

This discussion has been closed.