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:
The following functions are required:
- Free to use commercially
- Column sorting
- Custom column sorting types (sorting checkboxes checked/unchecked, price ranges)
- Row/Column highlighting
- 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.
We used datatables w/ MVC2 in our group with great results.
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.
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?