3.2.0

Get actual amount of data when using paging

Sorry for another question but I am using paging and setting the rowCount to 20 and paging through the data using setRowOffset(getRowOffset() + 20) etc...

But to make the final page work (when there is not 20 items left to go) I have to set the row count to be less than 20 otherwise I get an error. At the moment I am using a global var to remember how much data was put in initially. Is there a better way like a grid.getData().length or something?

Cheers!
James Crow
January 16,
No, there is nothing in the current version. I am thinking of adding a separate 'page' model for that but it has not been done yet.
Alex (ActiveWidgets)
January 17,

This topic is archived.

See also:


Back to support forum