Showing entries Problem.. help me
Showing entries Problem.. help me
HojongLEE
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
This discussion has been closed.
Answers
which your datasrc comes from, either client-side or server-side?
if server-side, i think that processing pagination parameters may be some exceptions.
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'.
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
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?
You could use http://live.datatables.net to create an example test case that showing the issue.
Could you try the 1.10.15 release please.
You can set option to any value you want.
Allan
Changing the datatables version to 1.10.15 works fine.
Thanks everyone.