Question

I need to choose a jQuery data grid plugin that plays well with MVC2.

I sit firmly on the client side so know nothing of MVC2 so was wondering if any had any particularly good or bad experiences in MVC2 with either of the following:

Datatables

Flexigrid

jqGrid

The following functions are required:

  • Free to use commercially
  • Column sorting
  • Custom column sorting types (sorting checkboxes checked/unchecked, price ranges)
  • Row/Column highlighting
  • Pagination
  • Filterable grid content via free text input (autocomplete possible) and check boxes
  • Multi-column sorting would be nice but not essential

From what i have seen jqGrid looks great but is a paid for solution and possibly overkill for the requirements.

Flexigrid seems to be a bit dead in terms of core development.

I really like Datatables but am struggling to see its compatibility with MVC2. Does anyone have any experience implementing this plugin with MVC2? Or any better recommendations?

Admittedly this is not really a question with a definite answer but any advice greatfully received.

Was it helpful?

Solution

We used datatables w/ MVC2 in our group with great results.

OTHER TIPS

jqGrid has all features which you need excepting Multi-column sorting. Probably this feature will be implemented in one of the next releases of jqGrid.

If you compare jqGrid with Flexigrid you correct mention that jqGrid are living. See for example the last 3.8.1 release October 24th, 2010 and even more recent changes which you can see and download from github.

There are two versions of jqGrid: Free, Open Source package as pure JavaScript solution delivered with GPL & MIT licenses and commertial which is integrated for example in Visual Studio development environment. You can use any from the versions in your ASP.NET MVC Project.

jqGrid can be used to fill data from almost any web service providing data in JSON or XML format. So you can write in ASP.NET MVC a Controller method which provide pure data in the JSON format and use View with empty <table>. If you want you can implement the "data provider" as ASMX or WCF service. You can also combine any from the solutions in one site, so you will be free in the implementation.

Look at the other question where you can find some links with examples of the usage of jqGrid with ASP.NET MVC.

Have you looked at Telerik Grid for MVC?

http://www.telerik.com/products/aspnet-mvc/grid.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top