:: Forum >> Version 2 >>

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
Tuesday, January 16, 2007
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)
Wednesday, January 17, 2007



This topic is archived.

Back to support forum

Forum search