A deeper look in to Kendo UI usage
Carl Bergenhem
Manager, Sales Engineering
Matt Shuster
Account Executive
// HTML
<input id="myDatePicker" />
// JS
$(document).ready(function() {
$("#myDatePicker").kendoDatePicker();
});
// WebForms syntax
<%= Html.Kendo().DatePicker()
.Name("myDatePicker")
%>
// Razor syntax
@(Html.Kendo().DatePicker()
.Name("myDatePicker")
)
HTML
ASP.NET MVC
vs.
// HTML
<input id="myDatePicker" />
// JS
$(document).ready(function() {
$("#myDatePicker").kendoDatePicker();
});
// JSP tags
<kendo:datePicker name="myDatePicker"></kendo:datePicker>
HTML
JSP
vs.
// HTML
<input id="myDatePicker" />
// JS
$(document).ready(function() {
$("#myDatePicker").kendoDatePicker();
});
// PHP classes
<?php
$datePicker = new \Kendo\UI\DatePicker("myDatePicker");
echo $datePicker->render();
?>
HTML
PHP
vs.
<div id="grid"></div>
<select id="ddl"></select>
<!-- Load the jQuery and RequireJS files from CDN -->
<script data-main="http://kendo.cdn.telerik.com/2015.2.805/js/jquery.min.js"
src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.1/require.min.js"></script>
<script>
//include the needed Kendo UI widgets scripts
require([ "kendo.dropdownlist.min", "kendo.grid.min" ], initApp);
function initApp() {
//you can initialzie the Kendo UI components here
$('#grid').kendoGrid({
dataSource:{
data: [{name: "John Doe"}]
}
})
$('#ddl').kendoDropDownList({
dataSource: {
data: [{name:"Jane Doe", value: 1}, {name:"John Doe", value: 2}]
},
dataTextField: "name",
dataValueField: "value"
})
}
</script>
For questions email
matt.shuster@telerik.com