I am facing problem when I am doing server side processing.

I am facing problem when I am doing server side processing.

s.somanis.somani Posts: 1Questions: 1Answers: 0
edited September 2016 in Free community support

Hello, I am applying server side processing to true but I am getting issue. I am getting data as following.
response={ d:"{"draw":1,"recordsTotal":2,"recordsFiltered":2,"data":[{"ReportedBy":"Admin","ReportedDate":"2016-09-19T14:50:07","CommentId":3201,"Comment":"Asdasd","ContentUrl":"http://localhost/blogs/sample-blog4","CommentedBy":"6f1ad5","ActionTaken":0,"ContentType":"blog"},{"ReportedBy":"Admin","ReportedDate":"2016-09-19T14:48:49","CommentId":3195,"Comment":"Afddsad","ContentUrl":"http://localhost/blogs/sample-blog4","CommentedBy":"Admin","ActionTaken":0,"ContentType":"blog"}]}" }
Above data getting from ASP.NET Web Service and after getting data I am parsing data from dataSrc like as following
dataSrc: function (response) {
response = JSON.parse(response.d);
return response.data;
}

My data is binding to datatable but getting trouble in in paging

Thanks :smile:

Answers

  • DirceuNazarethDirceuNazareth Posts: 44Questions: 1Answers: 12

    Sorry if I am getting your question wrong...

    Is your ASP.NET code doing paging for you (breaking the data in piece based on the querystring provided by datatable)?

    It is the expected behavior when you set server-side to true. serverSide.

    If you want get data from server-side but, once data is ready in client-side, paginate it, you should not enable this option.

This discussion has been closed.