grid controls for ASP.NET MVC? [closed]

2019-01-02 16:11发布

If you are using ASP.NET MVC how are you doing grid display? Rolled your own? Got a library from somewhere?

These are some of the known grid display solutions I have found for ASP.NET MVC

If you know of anything else that you are using or know to be good, please let me know.

12条回答
回忆,回不去的记忆
2楼-- · 2019-01-02 16:52

If it's just for viewing data, I use simple foreach or even aspRepeater. For editing I build specialized views and actions. Didn't like webforms GridView inline edit capabilities anyway, this is kinda much clearer and better - one view for viewing and another for edit/new.

查看更多
若你有天会懂
3楼-- · 2019-01-02 16:58

I just discovered Telerik has some great components, including Grid, and they are open source too. http://demos.telerik.com/aspnet-mvc/

查看更多
爱死公子算了
4楼-- · 2019-01-02 17:02

jqGrid is $299 if you use a special version that has server side integration, but it really is not that difficult to use the open source free version with ASP.NET MVC, once you get your jquery configuration straight it's almost as simple to use as any other licensed grid:

http://haacked.com/archive/2009/04/14/using-jquery-grid-with-asp.net-mvc.aspx

查看更多
伤终究还是伤i
5楼-- · 2019-01-02 17:03

We have been using jqGrid on a project and have had some good luck with it. Lots of options for inline editing, etc. If that stuff isn't necessary, then we've just used a plain foreach loop like @Hrvoje.

查看更多
萌妹纸的霸气范
6楼-- · 2019-01-02 17:07

I tried the example here of the Mvc Controls Toolkit grid. It appears a quite powerful and easy to use grid. The tutorial not only explain how to use the grid but also how to do paging, organize a view model and data annotations. It is worth to read it.

查看更多
栀子花@的思念
7楼-- · 2019-01-02 17:09

If it is read-only a good idea would be to create a table, then apply some really easy-but-powerful JQuery to that.

For simple alternative colour, try this simple JQuery.

If you need sorting, this JQuery plug-in simply rocks.

查看更多
登录 后发表回答