PickupJs 1.0.3
See the version list below for details.
dotnet add package PickupJs --version 1.0.3
NuGet\Install-Package PickupJs -Version 1.0.3
<PackageReference Include="PickupJs" Version="1.0.3" />
<PackageVersion Include="PickupJs" Version="1.0.3" />
<PackageReference Include="PickupJs" />
paket add PickupJs --version 1.0.3
#r "nuget: PickupJs, 1.0.3"
#addin nuget:?package=PickupJs&version=1.0.3
#tool nuget:?package=PickupJs&version=1.0.3
3 Easy Steps:
(1) Link to these 3 files in this exact order :
/Scripts/jquery.* ( > 1.9 )
/Scripts/vendor/kendo.all.min.js
/Scripts/pickup/pickup.js
/Scripts/pickup/pickup.grid.js
(2) Use pickup.grid to display kendo grid like here :
/***************************************** CLIENT SIDE *****************************************/
//define kendo Grid columns
//Infos on : http://docs.telerik.com/kendo-ui/api/web/grid#configuration-columns
var site_columns = [
{ field: "Id", title: "Id", sortable: false, filterable: false, attributes: { class: "id" } },
{ field: "Creation_Dtm", title: "Date de Création", attributes: { class: "creation_date" } },
{ field: "Subject", title: "Sujet", attributes: { class: "subject" } },
{ field: "Content", title: "Objet", sortable: false, filterable: false },
{ field: "HasReceipt", title: "avec AR", attributes: { class: "has_receipt" } },
{ field: "IsPriority", title: "Priorité", attributes: { class: "priority" } },
{ field: "Type", title: "Type de Message", attributes: { class: "type" } },
{ field: "Read_Nb", title: "Total Lus", attributes: { class: "read" } },
{ field: "Sent_Nb", title: "Total Envoyés", attributes: { class: "sent" } },
{ field: "Url", title: "url Pudo", attributes: { class: "url" } }
];
//Init the kendo Grid
var grid_sites = new pickup.grid();
grid_sites.init(
$('#grid_sites'),//Dom Container
site_columns,//Columns
null,//Columns Group by ids
{ read: { url: '@Url.Action("Read")' } },//Transport Urls
function (e) { },//On Databound
function (e) { }//On Creation
);
grid_sites.databind();//Source Databind
/***************************************** SERVER SIDE *****************************************/
[HttpPost]
public virtual ActionResult Messages_Read(DataSourceRequest request)
{
try
{
var messagesResult = SampleMessages
.AsQueryable()
.ToDataSourceResult(request.Take, request.Skip, request.Sort, request.Filter);
return Json(messagesResult);
}
catch (Exception ex)
{
return Json(new { error = ex.Message });
}
}
(3) Rule them all !
Learn more about Target Frameworks and .NET Standard.
-
- jQuery (>= 1.9.0)
- Kendo.DynamicLinq (>= 1.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.