PDA

View Full Version : pagenumber on 2nd page is 0101, 3rd page is 010101



gipsomat
4 Jan 2011, 11:39 PM
Dear all

There is a problem with our page numbers when there are != 20 entries at our page. The first page is ok (page number 1), but on the second page the shown page number is 101 and on the third page the shown page number is 10101.

Do you know the problem?

best regards

Condor
5 Jan 2011, 12:01 AM
Is this about a PagingToolbar?

Did you specify 'start' and 'limit' as numbers and not as strings?

gipsomat
5 Jan 2011, 12:24 AM
Yes, this is a PagingToolbar.
This is not my code and my teammate is on vacation. Do start and limit have to be string or number? Both seem to be "var". I can check this completely when I know which datatype they need to be.

For 20 entries no problem exists...

Condor
5 Jan 2011, 12:44 AM
Both start and limit need to be numbers (javascript automatically determines the variable type based on the assigned value)