MVC2 What is the best way to page a table
What is the correct way to implement paging开发者_StackOverflow on a table with MVC2? Is it possible to do this without reposting the whole form?
thanks
It depends how do you wish to implement paging. If you wish to implement server side paging, telerik components are great way to go ahead. There is a free open source version available if that suits your product. Here you can check out and download it
http://www.telerik.com/products/aspnet-mvc/grid.aspx
If you wish to implement client side paging, nothing beats jquery plugins available. You can see a list of paging plugins at:
http://plugins.jquery.com/plugin-tags/pager
I hope this helps, Thanks
You may take a look at MvcContrib Grid which has paging functionality built-in.
I would recommend using jQuery/AJAX to update the table without a full refresh.
The new jQuery template library MS contributed canhelp with recreating the table from a template for rows.
http://plugins.jquery.com/project/jquerytemplate
精彩评论