private int getRowsToBeRendered() { if (isDataLoaded()) { if (dataProvider.getCurrentPage() == 0) { dataProvider.nextPage(); } return dataProvider.getCurrentPageSize(); } return 0; }