iDataSort not being passed properly in server-side processing
iDataSort not being passed properly in server-side processing
When using iDataSort on local static data, everything works great. Column A can be sorted using Column Ds data.
However, when using server-side processing, iSortCol_0 is being passed as the actual columns index, and not the iDataSort value for that column.
example:
assume Table [ A, B, C, D ]
A { iDataSort: 3 }
When clicking column A (index 0), the server receives iSortCol_0 = 0, not 3.
I think the iDataSort index should be passed to the server in place of the actual index clicked on.
However, when using server-side processing, iSortCol_0 is being passed as the actual columns index, and not the iDataSort value for that column.
example:
assume Table [ A, B, C, D ]
A { iDataSort: 3 }
When clicking column A (index 0), the server receives iSortCol_0 = 0, not 3.
I think the iDataSort index should be passed to the server in place of the actual index clicked on.
This discussion has been closed.
Replies
original:
[code]
for ( i=0 ; i
Your solution worked perfect for me. I too am using server-side processing and could not get iDataSort to work. Thanks for figuring this out and posting the solution.