0 Replies Latest reply on Jul 13, 2010 11:45 AM by AFDB

    How to implement Lazy Loading of plain data (not hierarchical) using AdvancedDataGrid?

    AFDB Level 1



      We are trying to implement Lazy Loading of data fetched from backend. In order to prevent over loading of server, we would like to fetch only a certain portion of data at a time. Once the user scrolls to the end of the current list ( or 3/4th of the current list) we would like to initiate a request to get next set of data. And we would like to allow sorting or filtering of the data which is already fetched on the client side.


      We tried exploiting ItemPendingError feature using IList as the ADG.dataProvider. The lazy loading works fine if user does not sort or filter until all the data is fetched. But it stops working if user sorts or filters the data before complete data is fetched,


      We are getting the data from backend using HTTPService. The backend service can return at most 500 rows at a time.


      Any example implementations or suggestions are most welcome. We are planning to add this feature as part of common component. Any quick help is much appreciated.