1

This is my jQuery data table code.

$('#dynamic_list').DataTable({
        "order": [[ 0, "desc" ]],
        "iDisplayLength": '100',
});

I have more than 500 rows in data-table but pagination doesn't work properly and also data-table pagination showing

Showing 1 to **0,100** of 1,500 entries

Here you can see comma separated between 0,100. That might be create the problem in pagination. I'm not sure.

Can you guys help me out on this ?

Thanks in advance!

1
  • Can you reproduce the issue and share the code in Jsfiddle? Commented Apr 26, 2016 at 6:42

1 Answer 1

1

Have you tried adding extra parameters in your Datatable

$('#dynamic_list').DataTable({
        "sDom": 'rt<"dtPagination"lp><"clear">',
        "order": [[ 0, "desc" ]],
        "iDisplayLength": 100,
        "bPaginate": true,
        "sPaginationType": "full_numbers",
        "bServerSide": true            
});
Sign up to request clarification or add additional context in comments.

8 Comments

what is the need of "bServerSide": true here?
with bServerSide, you can use paging to control performance. rather than returning all records, you could return records 1 through 10, 11 through 20, etc., whatever is needed for that page.
@ Vijay V. It's my pleasure to help you :)
@SamyuktaR. thats true but it would require alot of rework for him if at all he is not using server side processing..
@ Reddy Since he says the code is working, I think he already have implemented the server side processing at his end.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.