开发者

How to automate paging on GridView using Timer from javascript

I have a 开发者_JS百科gridview on my page. I want the page to show me next 10 records after every 10 seconds. i.e. automated paging.

I have implemented manual paging on Gridview. How can I do this using Client Side event triggering


I think this can do the work, just need some checks and defind the MaxPages that its easy

var CurrentPage = 1;
setInterval( function()
 {
  CurrentPage++;
  if(CurrentPage > MaxPages)
   CurrentPage = 1;

  __doPostBack('<%=MyGrid.UniqueID%>','Page$'+ CurrentPage );
 },10000);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜