PickupJs 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package PickupJs --version 1.0.3
NuGet\Install-Package PickupJs -Version 1.0.3
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="PickupJs" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PickupJs --version 1.0.3
#r "nuget: PickupJs, 1.0.3"
#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 PickupJs as a Cake Addin
#addin nuget:?package=PickupJs&version=1.0.3

// Install PickupJs as a Cake Tool
#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 !

There are no supported framework assets in this 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
1.1.0 1,980 12/1/2014
1.0.3 1,280 11/28/2014