Sorting is not working in server side processing

Sorting is not working in server side processing

Priyanka_mallickPriyanka_mallick Posts: 6Questions: 3Answers: 0
edited May 2017 in Free community support

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

Answers

  • allanallan Posts: 63,350Questions: 1Answers: 10,443 Site admin

    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

  • Priyanka_mallickPriyanka_mallick Posts: 6Questions: 3Answers: 0

    404 error is coming in the network tab of Internet Explorer Browser.

  • allanallan Posts: 63,350Questions: 1Answers: 10,443 Site admin

    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

  • Priyanka_mallickPriyanka_mallick Posts: 6Questions: 3Answers: 0

    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

  • allanallan Posts: 63,350Questions: 1Answers: 10,443 Site admin

    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

This discussion has been closed.