Sending column name in place of column index for sorting

Sending column name in place of column index for sorting

gauravf4ugauravf4u Posts: 4Questions: 0Answers: 0
edited July 2012 in General
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.In this case I have no other choice then to decode this number example 5 and send the corresponding column name for the database calls as I am doing server side sorting.Is it possible to send the column name used in mDataProp when a column is sorted.If not,is there any other way else the server side code will become a bit messy as I will have to decode the column index and send the corresponding column name.



Regards
Gaurav
This discussion has been closed.