Infinito Scroll Genexus SD

1

Good, I am needing to implement an infinite scroll, that is, as long as the user scrolls in a grid that has "potentially" thousands of items. Initially I have an SDT and it is the one that I show in the grid.

The idea is that:

  • The SDT loads from 20 from the cursor position
  • Show those 20 on the grid
  • Save the cursor position
  • This should be quick. As the user scrolls downwards, cycle 1, 2 and 3 are repeated until the end. So as not to overload the grid.

    The closest thing I found in the wiki is this:

    link ,

    where variables are defined count, Start (to say how many to load and from which position of the query to load) and the sdt that load the values. The issue is that it is not clear to me how it works.

    It is loaded in the LOAD but nowhere do I see that the value of the Start variable is updated, therefore I would always be loading the same 20 items.

    If someone implements something so that I can approach an explanation, some hint or a welcome xpz!

    Greetings and thanks

        
    asked by bcamargo75 24.02.2017 в 15:43
    source

    1 answer

    2

    The problem with having the grid based on a SDT , is that those grids do not have a data provider > associated, they are loaded from the data provider of the container.

    To be able to use paging, you should base the grid on variables, and program using the variables &start and &count in the event Load .

        
    answered by 01.03.2017 / 12:49
    source