Which Javascript files to include

Below a table that sumarize the use of the Mvc Controls Toolkit Javascript files:

MVCControlToolkit.Controls-x.x.x.min.js

removed starting from 3.0.0.0

(you may include the various files in the same js bundle)

MVCControlToolkit.Controls.Core-x.x.x.min.js Core Js code. Need to be included always
MVCControlToolkit.Controls.Grid-x.x.x.min.js Datagrid js code
MVCControlToolkit.Controls.Items-x.x.x.min.js SortableList js code

MVCControlToolkit.Controls.Datetime-x.x.x.min.js 

(needs MvcControlToolkit.Utils-x.x.x.min.js)

DateTimeInput js code

jquery.treeview.all-x.x.x.min.js

starting from 3.0.0 renamed to:

MVCControlToolkit.Controls

.ServerTreeview-x.x.x.js

It comes with the css file:

MVCControlToolkit.Controls

.ServerTreeview-x.x.x.css

  TreewView Code

knockout.all-x.x.x.min.js

removed starting from 3.0.0.0

(you may include the various files in the same js bundle)

(needs MvcControlToolkit.Utils-x.x.x.min.js)

 knockout-x.x.x.js

 knockout.mapping-2.0.0.js

 MvcControlToolkit.Bindings-x.x.x.js

Client-Side ViewModel and Templates code
MVCControlToolkit.JsQueryable-x.xx.min.js
(needs knockout.all-x.x.x.min.js)
  jsQueryable and updateManager
MvcControlToolkit.Utils-x.x.x.min.js  

Useful javascript utilities pre-requisite for   knockout.all-x.x.x.min.js and 

MVCControlToolkit.Controls.Datetime-x.x.x.min.js

MVCControlToolkit.Controls.Core-x.x.x.min.js contains the js core of the Mvc Controls toolkit and you have always to include it. The other files to include depend on the controls used in the page.

MVCControlToolkit.Controls.Datetime-x.x.x.min.js is needed just for the DateTimeInput. It is not needed if you display dates/datetimes with TypedTextBox and TypedEditDisplay 

DateTimeInput TypedTextBox and TypedEditDisplay  when displaying dates need either the jQuery UI DatePicker, or the Bootstrap or the jQuery Mobile DateBox (please refer to the bundles definition file included in the Mvc Controls Toolkit Nuget package and in the Mvc Controls Toolkit Nuget binary distribution for the link of the Nuget packages containing these Date Pickers)

MvcControlToolkit.Bindings-x.x.x.js needs knockout-x.x.x.js and knockout.mapping-x.x.x.js

Attention MvcControlToolkit.Bindings-x.x.x.js needs MvcControlToolkit.Utils x.x.x.min.js: MvcControlToolkit.Utils-x.x.x.min.js must be placed immediately after  knockout-x.x.x.js and knockout.mapping-2.0.0.js.

MVCControlToolkit.JsQueryable-x.xx.min.js needs MvcControlToolkit.Bindings-x.x.x.js  

If you would like to use the underscore template engine with the knockout library you can include the last release of the Underscore.js file just before the MvcControlToolkit.Bindings-x.x.x.js file. 

Last edited Jun 22, 2014 at 10:33 AM by frankabbruzzese, version 17

Comments

No comments yet.