Flexgrid upword lazy loading

Posted by: zam.abdulvahid on 22 March 2018, 8:49 am EST

  • Posted 22 March 2018, 8:49 am EST

    Hi Team,

    I have implemented lazy loading of records once the user scroll down using the ‘scrollpositionchanged’ event.

    Is there any direct API which i can use to do the upward lazy load.

    Say if I’m removing the records from the collection that went off from the view range when u scroll down. And when u scroll up bring back those records using a service calls based on scroll.

    Thanks

    Zam

  • Posted 23 March 2018, 5:51 am EST

    You can achieve this by using ODataVirtualCollectionView.

    Here is a working example of the same :- http://plnkr.co/edit/tRK0O52inNd7FMrczOB9?p=preview

    However the ODataVirtualCollectionView generates query for fetching records based on standard OData protocol.

    If your web service implements OData protocol you are good to go.

    More info on OData protocol can be found here :- http://www.odata.org/

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels