1
Reply

pagination of grid using javascript

Rp Singh

Rp Singh

Apr 28 2017 4:18 AM
267
Hi,
 
my hander code is like
  1. htmlToReturn.AppendLine("<tr><th><input type='checkbox'></th><th style='text-align:left'>Details</th></tr>");  
  2.            foreach (var Data in Detail.Values)  
  3.            {  
  4.                string script = @"$('#act_').on('click',function())";  
  5.                              
  6.                htmlToReturn.AppendLine("<tr><td><input type='checkbox'id='act_'"+count +" onclick="+script +" ></td><td>"+Details+"</td></tr>");  
  7.   
  8.                count= count+1;  
  9.            }  
  10.                 context.Response.Write(htmlToReturn.ToString());
My aspx code is -
<div id="tblGrid">
</div>
here i am showing data from grid as -
 
 
i need js script that will paginate the element after 3 elements.
 
thanks 
 

Upload Source Code  Select only zip and rar file.
Answers (1)