ODataVirtualCollectionView detect when request for data is cancelled

Posted by: bozjator on 28 October 2019, 6:29 am EST

    • Post Options:
    • Link

    Posted 28 October 2019, 6:29 am EST

    Hi,

    im using ODataVirtualCollectionView for virtual scroll.

    Is there an event that is triggered when ODataVirtualCollectionView class cancels the request for data?

    I found events loading and loaded, but cant find something like loadingCancelled.

    For example, i scroll down and grid starts to load new data and i show spinner to let user know that data is loading. But if user scrolls back up, the grid cancels request and shows data that is already loaded.

    How can i now detect that grid cancelled request so that i can hide my spinner?

    Regards

  • Posted 30 October 2019, 4:01 am EST

    Hi,

    We are sorry but currently, there is no event that fires after the loading has been canceled. But we have added an enhancement request for the same with internal tracking id 403703. We will update you as soon as we hear from the developer.

    Regards,

    Ashwin

  • Posted 27 November 2019, 1:21 am EST

    Hi,

    A new event called ‘requestCanceled’ has been added to the ODataVirtualCollectionView class that could fulfill your requirement.

    ~regards

Need extra support?

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

Learn More

Forum Channels