开发者

What's the best way to create a paging gridview-style partial view in Asp.net MVC?

开发者 https://www.devze.com 2022-12-12 00:40 出处:网络
In the current MVC project I\'m working on, I need to be able to create something exactly like the GridView from asp.net webforms.I\'m actually using FubuMVC, but I can adapt any Asp.net MVC solution

In the current MVC project I'm working on, I need to be able to create something exactly like the GridView from asp.net webforms. I'm actually using FubuMVC, but I can adapt any Asp.net MVC solution to the Fubu framework.

I want to create something that has the same kind of functionality as the GridView. To explain further, I mean I want something to list 10-20 items out of a list of 100-200 items, with sorting and paging.

Currently, I could create something like this straight-up in MVC on a case-by-case basis, depending on what I was trying to list. Implementing so开发者_如何学JAVArting and paging as controller actions, or something similar, but it seems like such a common problem that their must be some type of reusable solution. Only problem is that I can't think what the optimal solution to this problem is.

So, what's the best way to create a gridview-style something in Asp.net MVC?

Thanks for reading.


I use jQGrid. It does all that and a bit more.

0

精彩评论

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