Does Grid.MVC work with ASP.NET MVC 5?

2020-04-25 23:13发布

问题:

Before I start messing around with something that doesn't work:

Does Grid.MVC work with ASP.NET MVC 5?

On gridmvc.codeplex.com they just write MVC3/4, but I wonder if anybody tried it with MVC5? You tried it, but it didn't work? Did you use any free alternative?

Any help appreciated! Thanks!

回答1:

Try this one: http://mvc-grid.azurewebsites.net it is more up-to-date.

MVC 5:

Install-Package NonFactors.Grid.Mvc5 

MVC 6:

Install-Package NonFactors.Grid.Mvc6 


回答2:

Yes it works in MVC5. The website does not indicate 3+ but that's what it is.

I have implimented Grid.Mvc in multiple MVC5 projects using EF6.

I love it, it's really easy to stand up and allow my users to query the data tables. I would suggest trying it out, but the documentation isn't great. Luckily the documentation they do have is enough to get started.

https://gridmvc.codeplex.com/documentation



回答3:

you can use Data Table render for display grid view. please following below this link:

https://datatables.net/examples/advanced_init/column_render.html

may be this can help you.