Hi,
$(window).scroll(function (e) {
if ($(window).scrollTop() == $(document).height() - $(window).height()) {
GetRecords();
}
});
Change the above code with the below
$(window).scroll(function (e) {
if ($(window).scrollTop() <= $(document).height() - $(window).height()) {
GetRecords();
}
});