Showing entries Problem.. help me

Showing entries Problem.. help me

HojongLEEHojongLEE Posts: 4Questions: 1Answers: 0

Hi

I have one question, and I hope to answer.
For example, if you have a total of 38 entries and 10 entries per page,
On page 3, you'll see '21 to 30 of 38 entries'.
If you change to see 25 entries per page in that state,
'26 to 38 of 38 entries' should be normal.
But on my web it looks like '14 to 38 of 38 entries'.
I do not know where the problem is.
Please help me.

This question has an accepted answers - jump to answer

Answers

  • JianxinJianxin Posts: 2Questions: 1Answers: 0

    which your datasrc comes from, either client-side or server-side?
    if server-side, i think that processing pagination parameters may be some exceptions.

  • HojongLEEHojongLEE Posts: 4Questions: 1Answers: 0

    It looks like the wrong iDisplayStart variable is passed to the server.
    If you click View 25 entries, the value of iDisplayStart variable should be 25, but it goes to server 13. It looks like it cuts out 25 from the back and comes out as '14 to 38 of 38 entries'.

  • allanallan Posts: 63,892Questions: 1Answers: 10,530 Site admin

    Can you link to a test page showing the issue please. Can you also state what version of DataTables it is that you are using.

    Allan

  • HojongLEEHojongLEE Posts: 4Questions: 1Answers: 0

    I can not show it as a company intranet.
    The datatables version is 1.10.0.

    Can i tell iDisplayStart to initialize a variable value or clear this function?

  • allanallan Posts: 63,892Questions: 1Answers: 10,530 Site admin
    Answer ✓

    You could use http://live.datatables.net to create an example test case that showing the issue.

    The datatables version is 1.10.0.

    Could you try the 1.10.15 release please.

    Can i tell iDisplayStart to initialize a variable value or clear this function?

    You can set option to any value you want.

    Allan

  • HojongLEEHojongLEE Posts: 4Questions: 1Answers: 0

    Changing the datatables version to 1.10.15 works fine.
    Thanks everyone.

This discussion has been closed.