w2grid.autoLoad

Indicates if the records should be loaded from the server automatically as user scrolls.
Boolean, default = true
This property only applies if your data source for the grid is remote. As of 1.3, the default behavior of the grid is infinite scroll, which means as user scrolls more records will be loaded. However, in some cases record generation might be processor heavy and server will not be able to output records fast. If you set .autoLoad to false, instead of loading records automatically, the grid will display "Load More..." button as user reaches the end of available records.
This property can be set during object creation: Or any time during run-time: You do not need to refresh the grid because .autoLoad will only be used when more records need to be loaded.

User Comments

comments powered by Disqus