When I want to move to the next page in the pipeline example. The screen remains Proccessing !

When I want to move to the next page in the pipeline example. The screen remains Proccessing !

sevbansevban Posts: 2Questions: 1Answers: 0
edited April 2019 in Free community support

When I want to move to the next page in the pipeline example. The screen remains Proccessing !
I'm working on .NET 4.5 MVC 5 jquery 1.10.2 datatable 1.10.8
My source code;

$(document).ready(function () {
var table = $('#MyTable').DataTable({
"ajax": $.fn.DataTable.pipeline({
"url": '@Html.Raw(Url.Action("MyJsonMethod[HttpPost]", "MyController", new { startdate= Model.StartDate, enddate= Model.EndDate))',
"contentType": 'json',
"pages": 5
}),
// "scrollY": 400,
//"scroller": {
// "loadingIndicator": true
// },
"serverSide": true,
"processing": true,
"ordering": false,
"searching": false,
"columns": [
{ "data": "AccountId" },
{ "data": "LineNumberCounter"},
{ "data": "EntryComment" },
{ "data": "DocumentType" },
{ "data": "DocumentTypeDesc" },
{ "data": "Debit" },
{ "data": "Credit" },
{ "data": "Balance" }
]
}
]
});
});

$.fn.DataTable.pipeline = function (opts) {
// Configuration options
var conf = $.extend({
pages: 5, // number of pages to cache
url: '', // script url
data: null, // function or object with parameters to send to the server
// matching how ajax.data works in DataTables
method: 'POST' // Ajax HTTP method
}, opts);

...more similar to pipeline example

Answers

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    The pipeline example you mentioned appears to work okay, so I really would need a test case showing the issue.

    Allan

  • sevbansevban Posts: 2Questions: 1Answers: 0

    Thanks for answer Allan.
    I realized my error in creating a test case :)

This discussion has been closed.