kendo templates
HTML
<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.metro.min.css">
<div id="example"></div>
<hr />
<div id="listview"></div>
<p>I dont know what the exact format of the date is on this PC...but using this as a sample, how can I format it</p>
JavaScript
var date = new Date();
var template = kendo.template("Today is #= date # <br /> Formatted: #= kendo.toString(date, 'MM/dd/yyyy') #");
$("#example").html(template(date));
//Listview template
$("#listview").kendoListView({
template: "<li>${FirstName} ${LastName} born on ${Date}</li>",
dataSource: {
data: [
{
FirstName: "Joe",
LastName: "Smith",
Born: "/Date(1224043200000)/"
},
{
FirstName: "Jane",
LastName: "Smith",
Born: "/Date(1224043200000)/"
}]
}
});