• Stars
    star
    185
  • Rank 208,271 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ASP MVC Helpers for connecting IQueryables with the amazing DataTables.net plugin

turn IQueryables into datagrids

Join the chat at https://gitter.im/mcintyre321/mvc.jquery.datatables

Install-Package Mvc.JQuery.DataTables

Install-Package Mvc.JQuery.DataTables.Templates *

Demo site Example

  • turn any IQueryable into a live datagrid. Tested with:
    • Linq To Objects
    • Entity Framework
    • Lucene.Net.Linq
  • wraps the very comprehensive jquery datatables plugin. Supported features:
    • Filtering (text, date or datetime range (with datepicker), number ranges, choose from dropdown, multiple values using checkboxes)
    • Sorting (configurable per column)
    • Paging (choose page size options, or fix them)
    • Customer column rendering
    • Custom positioning of filters (e.g. you could move them above the table)
    • Localization
    • TableTools support (PDF/Excel export)
    • Attribute based configuration (optional)
  • Can be run from dll

*skip this if using EmbeddedResourceVirtualPathProvider

See the test page and example project for info on how to use

http://nuget.org/packages/Mvc.JQuery.DataTables

The code here is based on code from http://code.google.com/p/datatables-asp-mvc/

Note to users

This library has been developed on an as-needed basis, so not all configuration settings from datatables are implemented yet. If you need a setting to be added, please fork the project, update the code, and update the example page to include a usage of the new setting (where this makes sense) e.g. https://github.com/mcintyre321/mvc.jquery.datatables/commit/c70f9c1f51178386e84a73ccea4495343f815012

If you have a feature request, bug, or a patch, please could you add an example page on a fork demonstrating the problem or feature. Thanks!

Flattr this git repo

If you have found this project useful, please consider contributing some documentation - it's the biggest weakness!

THANKS

To https://randomuser.me/ for the image thumbnails used in the example site

More Repositories

1

OneOf

Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
C#
2,718
star
2

ValueOf

Deal with Primitive Obsession - define ValueObjects in a single line (of C#).
C#
758
star
3

FormFactory

MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically
C#
304
star
4

LinqToAnything

Turn any data source into an IQueryable
C#
87
star
5

EmbeddedResourceVirtualPathProvider

A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
C#
62
star
6

JsonDiffPatch

C#
45
star
7

PieDb

MIT licenced .NET document db with IQueryable support
C#
22
star
8

WebAPI-Proxy

An HTTP proxy built on ASP.NET Web API
C#
20
star
9

metalinq

serialize, modify, and deserialize LINQ Expressions
C#
19
star
10

Harden

Harden your .NET objects with dynamic access controls. Tie domain behaviour to objects not classes!
C#
12
star
11

Noodles

a .NET library for building model driven web/API/mobile* applications on top of ASP MVC or WebApi - SEE BELOW!
JavaScript
9
star
12

Giveth

The less annoying BDD / Gherkin library for .NET
C#
9
star
13

jquery-datatables-column-filter

JavaScript
7
star
14

SimpleScriptRunner

Very simple way to execute MSSQL change scripts
C#
7
star
15

Linqdex

lucene indexing for in-memory collection objects (a proof of concept)
C#
6
star
16

SirenDotNet

Classes for working with Siren hypermedia format
C#
5
star
17

RangeQueryDotNet

Middleware to allow use of custom range headers for filtering and transforming HTTP responses
C#
4
star
18

MigrationScriptGenerator

C#
4
star
19

Handlebars.Net.Mvc

CSS
3
star
20

NTraits

A runtime trait/mixin library for .NET
C#
3
star
21

NhCodeFirst

Code first NHibernate mappings - create your domain model first and generate your database
C#
3
star
22

HyperMapper

A hypermedia (REST) endware for Owin
C#
2
star
23

DependencySort

c# Library for sorting objects in a dependency heirarchy
C#
2
star
24

MiniProfilerDashboard

A portable area to show you your miniprofiler stats
JavaScript
2
star
25

AspNetCoreJTokenModelBinder

ASP.NET Core ModelBinder for NewtonSoft JSON.NET JToken
C#
2
star
26

ObservableCollectionHelpers

C#
2
star
27

Sourcery

Black magic automatic event sourcing in memory database
C#
1
star
28

Walkies

C#
1
star
29

express-jmesrange

TypeScript
1
star
30

SirenToHtmlClientProxy

C#
1
star
31

JsViewEngine

A prototype server side Javascript ASP MVC view engine
JavaScript
1
star
32

Siggs

Generate types at runtime for method signatures for model binding
C#
1
star
33

PiwikTrackerSharp

C#
1
star