Paging oddity with large server side dataset
Paging oddity with large server side dataset
vinnytheviking
Posts: 2Questions: 0Answers: 0
Hi first of all thanks for a fantastic product. You've done a great job on it.
Now for my question.
I'm using server side processing and have 137000 records at the moment.
I have a default page size of 20.
On initial load the page shows correct "Showing 1 to 20 of 137,944 entries". When I click "next" it shows "Showing 0201 to 2,020 of 137,944 entries" This is obviously not right. I can't page again after this is shown. expect click "first" to take me to the first page.
Any ideas ?
Thanks
Vinny
Now for my question.
I'm using server side processing and have 137000 records at the moment.
I have a default page size of 20.
On initial load the page shows correct "Showing 1 to 20 of 137,944 entries". When I click "next" it shows "Showing 0201 to 2,020 of 137,944 entries" This is obviously not right. I can't page again after this is shown. expect click "first" to take me to the first page.
Any ideas ?
Thanks
Vinny
This discussion has been closed.
Replies
[code]
"iDisplayLength": 20 // good
"iDisplayLength": "20" // bad
[/code]
allan's code should cast that to int, but it seems that the string is being used
for 1 through 20, it seems the code is using "+" on strings and ints, which casts ints to string
instead of 01 the "20" gets shoved in there to make 0"20"1 => "0201"
instead of 20, the "20" gets appended or something
Thanks again
Vinny