or
$("#Chart").kendoChart({
theme: "default",
title: {
text: "Product Categories"
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "column"
},
series: [{
name: "Product",
field: "ProductId"
}],
valueAxis: {
labels: {
template: "#=value#" // I need to replace with a NAME
// template: "#= dataItem.ProductName #" // this does NOT work
}
},
categoryAxis: {
field: "CategoryName"
},
tooltip: {
visible: true,
template: "#= dataItem.ProductName #" // THIS works
},
... omitted
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "cfcs/loadCSR.cfm",
cache: false
},
destroy: {
url: "cfcs/deleteCSR.cfm",
cache: false,
type: "POST",
success: function(result){
console.log("lol");
}
}
},
batch: true,
pageSize: 30,
schema: {
data: "data",
model: {
id: "BADGEID",
fields: {
BADGEID: {
type: "number"
},
EMPLOYEENAME: {
type: "string"
},
UNITID: {
type: "number"
},
UNITNAME: {
type: "string"
}
}
}
}
});
$(
"#resultsGrid"
).kendoGrid( {
dataSource: {
type:
"json"
},
columns: [
{
field:
"date"
,
title:
"Date"
,
format:
"{0:MM/dd/yyyy}"
}]});