How to load Tables on demand

  
How can I load table rows on demand? (like lazy loading) I can't use pagination, and my table have a lot of rows... I know how to display records on demand, but I want this records  to be fetched on demand too from database. 

Thanks