Hi,

On Scroll Ending Event is working on List , But not showing on Table.

What i have to do to apply this event on table. I want to use auto scroll paging on table source.

Kind regards,

Rahul Jain

Hello Rahul,

Hope you're doing well.

By default, OnScrollEnding Event is not defined for Table widget.


However, you can implement this behavior using JavaScript:


document.getElementById("Element").addEventListener("scroll", function() {
    
    var scrollTop = document.getElementById("Element").scrollTop;
    var scrollHeight = document.getElementById("Element").scrollHeight;
    var offsetHeight = document.getElementById("Element").offsetHeight;
        
    if (offsetHeight + scrollTop >= scrollHeight)
    {
        //run handler
    }
});


If you place this JavaScript on the OnReady event of your page, this should allow you to detect if you reached the end of your element.


Please refer to attached OML with this solution.


Hope that this helps you!


Kind regards,

Rui Barradas

Hello Rahul,

Any news on this topic?

Please, let me know about your conclusions :)

I am also curious on this one :)


Kind regards,

Rui Barradas

Solution

Hi Rahul,

I would suggest to use list widget for listing and Use event OnScrollEnding of list widget to append records on scroll end.


Hope this helps you!!



Thanks!!

Solution

Ajay Sharma wrote:

Hi Rahul,

I would suggest to use list widget for listing and Use event OnScrollEnding of list widget to append records on scroll end.


Hope this helps you!!



Thanks!!

 

 Thanks Ajay