[issue] Pagination number error: "Showing xxx to xxx of xxx entries" number is wrong.

[issue] Pagination number error: "Showing xxx to xxx of xxx entries" number is wrong.

qinbxqinbx Posts: 9Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
== Error case 1 ==
page 1
----------------------------------------------
SHOW 500 ENTRIES
SHOWING 1 TO 500 OF 1,202 ENTRIES [1]23
----------------------------------------------
page 2
----------------------------------------------
SHOW 500 ENTRIES
SHOWING 05,001 TO 1,202 OF 1,202 ENTRIES 1[2]3
----------------------------------------------

== Error case 2 ==
----------------------------------------------
SHOW 500 ENTRIES
SHOWING 501 TO 1,377 OF 1,377 ENTRIES 1[2]3
----------------------------------------------

Datatable version: 1.9.3
jQuery version: 1.8.1

I met this issue in our project. This editor don't allow upload image, so, can you understand me?
Is this a known issue or not?

Replies

  • qinbxqinbx Posts: 9Questions: 0Answers: 0
    Ajax request for error case 1
    = for page1 =
    ?gtid=&filterId=0&sEcho=1&iColumns=9&sColumns=&iDisplayStart=0&iDisplayLength=500&mDataProp_0=0&
    = for page2 =
    ?gtid=&filterId=0&sEcho=2&iColumns=9&sColumns=&iDisplayStart=0500&iDisplayLength=500&mDataProp_0=0&
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'd bet you are replying with strings for iDisplayRecords (etc) rather than integers. Is that the case?

    Allan
  • qinbxqinbx Posts: 9Questions: 0Answers: 0
    Yes, now fixed, Very thanks Allan. we passed a number string to pageSize.

    dataTable( {
    iDisplayLength": pageSize,
    ....
    });
This discussion has been closed.