Sorting is not working in server side processing
Sorting is not working in server side processing
Priyanka_mallick
Posts: 6Questions: 3Answers: 0
Hi,
I used the same approach to server-side processing using c# from the below URL
https://www.codeproject.com/Tips/1011531/Using-jQuery-DataTables-with-Server-Side-Processin
Everything is working fine except sorting.
When I'm clicking on sorting options, I am getting "datatables.net/tn/7" error in the alert message.
On click of Sorting, It is not hitting the method of AjaxGetJsonData either
Please help.
Thanks in Advance
This discussion has been closed.
Answers
If you follow the instructions in the tech note you linked to, what does it show as the status code being returned from the server and what is the data being returned from the server?
Thanks,
Allan
404 error is coming in the network tab of Internet Explorer Browser.
The path you are using to get the data from is wrong then. Either that or the script on the server-side is not where you expected it to be.
Allan
In the above link, it was mentioned that for paging, ordering and search same method will be called. For paging and search, it is working fine but on click of sorting, 404 error is coming in the console.
Please let me know if i need to add any other attribute
Perhaps a different URL is being called? Without a test case I really can't say for sure. I didn't write the article you linked to, so I can't really comment about that.
Allan