Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1415
Infinite scroll feature not working as expected in Ignite version 9
posted

Hi Team,

I am using Ignite version 9. we are trying to implement Infinite scrolling/ vertical scrolling for our data grids.

From the sample available in Infragistics https://stackblitz.com/edit/igx-grid-sample-version-9?file=src%2Fapp%2Fgrid%2Fgrid-row-editing-sample%2Fremote.service.ts , i have used our api call to remotely access data instead of DATA_URL but it is throwing 404 error.

Please help. Please reply ASAP.

Parents Reply
  • 2680
    Offline posted in reply to Shobhana Suara

    Hi Shobhana,

    As already mentioned in the previous replies, the demos in our Grid Remote Data Operations topic provide a general guidance on how to implement load on demand functionality. They use a sample public OData source which supports certain queries in a predefined format.

    As to what concerns your API, in order to achieve load on demand, it has to support fetching portions of data, based on the information that the API call carries, either as query parameters (as in our demos), or in the request body. In case you have already gone through our samples, you have probably got familiar with the approach taken there and the constructed queries.

    Additionally, by inspecting the “Network” tab of the Dev Tools you could study the request URLs issued by the demos, for instance:

     

    As you can see, the sample API’s endpoint URL is https://services.odata.org/V4/Northwind/Northwind.svc

    And then the query part of the URL is:

    Products?$count=true&$skip=17&$top=10

    Where “Products” is the name of the target table/specific data source;

    ?$count=true means we also like to get the total number of records (this was already explained above);

    &$skip=17 means to not fetch the first 17 records, as we have scrolled the grid a bit, and we are fetching a further portion of data;

    &$top=10 means to fetch only the 10 top records. In indexes terms, this would fetch records 18 to 28 from the data source.

    So, your project’s API has to support similar concepts in order to be able to fetch data in chunks. It does not have to be in the same format and entirely depends on the technologies you are using and the specific application needs. Please, keep in mind that how your API is configured is out of the scope of Infragistics Support, though.

    As mentioned, the Remote Data demos show examples on how the IgxGrid’s own properties and events can be leveraged to achieve remote operations functionality in conjunction with an API service that is configured to support this.

    I hope these clarifications help.

    Best regards,
    Bozhidara Pachilova

Children