Not sure that understan this quite.
In general You have two options there
1) without specifying rows attribute - all the data will be fetched from server and scrolled on client side.
2) specifying rows attribute - only this count of rows will be fetched and other rows will be loaded via ajax after verticall scrolling.
if you want to fetch all the data - extendedDataTable seems will better fit your needs.