Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Implementing Load GridView on ScrollDown in a UserControl

$
0
0

I am trying to implement this article .. Click Me in a UserControl. I downloaded the sample attached there and its working fine but i am trying to create UserControl out of it. No rows are getting loaded on scrolling down. I modified the code to look like this..
Its giving me error: The name 'Test1' does not exist in the current context.
Test1 is the Id of my USerControl. Test1 is the ID of UserControl.

var lastProductId = $("#<%=Test1.GridView1.ClientID %> tr:last").children("td:first").html();
            //get last table row in order to append the new products
            var lastRow = $("#<%=Test1.GridView1.ClientID %> tr:last");
AND,

function GetRowsCount() {//Count no. of rows except header row in the grid. var rowCount = $('#<%=Test1.GridView1.ClientID %> tr').length - 1;return rowCount;


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>