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!
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,