No description, website, or topics provided.
C# XML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DataTablesModelBinder
.gitignore
DataTablesModelBinder.sln
LICENSE
README.md

README.md

datatables-modelbinder

Correctly binds a datatable for jquery-datatables

Requires Newtonsoft.Json

Only binds the data, does not do any automatic sorting or automagic fetching from databases

Example:

public class HomeController : Controller
{
	public ActionResult SalesTable( [ModelBinder(typeof(DataTableModelBinder))] DataTable datatable )
	{
		var data = fetchData( datatable );
		return JsonConvert.SerializeObject( data );
	}
}