Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
this is my code
JavaScript
$("#dvGrid").on("scroll", function (e) {
    var $o = $(e.currentTarget);
    if ($o[0].scrollHeight - $o.scrollTop() <= $o.outerHeight()) {
        GetRecords();
    }
});

plz can any one tell me what is the problem.
Posted
v2

1 solution

I assume you have included the jQuery file in your aspx page.
If you have not, then add the reference.

Now, try with the below code.
JavaScript
$('#<%=dvGrid.ClientID %>').on("scroll", function (e) {
    var $o = $(e.currentTarget);
    if ($o[0].scrollHeight - $o.scrollTop() &lt;= $o.outerHeight()) {
        GetRecords();
    }
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900