Project Description
Integrating jQuery's DataTables.NET into asp.net's MVC framework, automatically generating master-detail grids from enumerated types in just one line of code!

Do you want to use http://datatables.net w/ MVC? If you're building a website w/ a datatable / grid and want to tap into the MVC paradigm provided by Microsoft's web technologies, then this project's for you.

This project enables you to write one line in the view that automatically creates dynamic (CRUD, able to create-read-update-delete) and sophisticated master-detail grids.

For example, this one line:

@Html.Partial("_DataTable", Html.DataTableModel((DemoController c) => c.GetDirectoryModels(null)))

... runs this website:

639576

The beauty and added value of this project (new technology) is that all the components are "smart" and strongly-typed. That means, that your magically discoverable functions look like this:
  • Get master objects (directories in the demo project): public DataTableResult<DirectoryModel> GetDirectoryModels(DataTableViewModel viewModel)
  • Get master-detail objects (files from the master directory): public DataTableResult<FileModel> GetFiles(DataTableViewModel viewModel, DirectoryModel directoryModel)
  • Delete object: public string DeleteDirectoryModel(DirectoryModel directoryModel)
  • Add object: public int AddDirectoryModel(DirectoryModel directoryModel)
  • Update object: public string UpdateDirectoryModel(DirectoryModel directoryModel, string column, string value)

Demo at: http://mvcdatatables.net/Demo/Index. NOTE: Demo site was canceled - not enough interest in this project to keep it going

Special thanks to: Johannes-Brunner of https://github.com/johannes-brunner/DataTables-ASP.NET-MVC for the concepts and direction used in this project, Jovan Popovic of http://code.google.com/p/jquery-datatables-editable for creating the editable components of datatables.net, and the widely-known open-source projects at http://www.datatables.net, http://www.appelsiini.net/projects/jeditable. W/o them, this project wouldn't have been possible. Thank you!

Last edited Mar 18, 2014 at 2:22 PM by Radovici, version 20