EFDatatable 1.1.0

Suggested Alternatives

DatatableJS.Net

Additional Details

Please download DatatableJS.Net package

There is a newer version of this package available.
See the version list below for details.
dotnet add package EFDatatable --version 1.1.0
NuGet\Install-Package EFDatatable -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EFDatatable" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EFDatatable --version 1.1.0
#r "nuget: EFDatatable, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EFDatatable as a Cake Addin
#addin nuget:?package=EFDatatable&version=1.1.0

// Install EFDatatable as a Cake Tool
#tool nuget:?package=EFDatatable&version=1.1.0

EFDatatable

What is EFDatatable?

EFDatatable is a helper to create a grid with Jquery Datatable and provides an extension to retrive data generically from Entity Framework context. It possible to use many datatable.js features with Html helper. It gives serverside or client side options.

@(Html.EF().GridFor<Person>()
        .Name("PersonGrid")
        .Searching(true)
        .Class("table table-striped")
        .Columns(cols =>
        {
            cols.Field(a => a.Id).Visible(true).Orderable(false).Searchable(true);
            cols.Field(a => a.Name).Title("First Name");
        })
        .Filters(filter =>
        {
            filter.Add(a => a.Id).GreaterThanOrEqual(1);
        })
        .URL(Url.Action("GetDataResult"), "POST")
        .ServerSide(true)
        .Render()
)

With "ToDataResult(request)" extension function, data can get with server side pagination very simply.

public JsonResult GetDataResult(DataRequest request)
    {
        DataResult result = context.People.ToDataResult(request);
        return Json(result);
    }

Where can I get it?

First, install NuGet. Then, install EFDatatable from the package manager console:

PM> Install-Package EFDatatable

Then add datatables.net Javascript and CSS files or links to your project.

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 692 1/3/2021
1.4.0 579 12/3/2020
1.3.3 662 7/20/2020
1.3.2 549 7/14/2020
1.3.1 603 7/13/2020
1.3.0 586 7/10/2020
1.2.2 564 7/1/2020
1.2.1 667 2/12/2020
1.2.0 663 2/6/2020
1.1.4 588 2/3/2020
1.1.3 784 1/25/2020
1.1.1 699 1/18/2020
1.1.0 681 1/13/2020
1.0.3 638 1/10/2020
1.0.2 673 9/13/2019
1.0.0 901 6/9/2019

Mvc framework version updated