or
<SPAN class="k-picker-wrap k-state-default" jQuery171010970156005264647="31"><br><INPUT style="WIDTH: 100%" id=datetextbox class=k-input value="08/29/2012 04:47 PM" size=22 data-role="datetimepicker" jQuery171010970156005264647="27"><br><SPAN class=k-select unselectable="on"><br><SPAN class="k-icon k-i-calendar" unselectable="on" jQuery171010970156005264647="32">select</SPAN><br><SPAN class="k-icon k-i-clock" unselectable="on" jQuery171010970156005264647="33">select</SPAN></SPAN></SPAN><br><span class="k-picker-wrap k-state-default" jQuery171010970156005264647="62"><br><INPUT style="WIDTH: 100%" id=datetextbox class=k-input value="08/29/2012 04:52 PM" size=22 data-role="datetimepicker" jQuery171010970156005264647="27"><SPAN class=k-select unselectable="on" jQuery171010970156005264647="63"><SPAN class="k-icon k-i-calendar" unselectable="on" jQuery171010970156005264647="32">select</SPAN><SPAN class="k-icon k-i-clock" unselectable="on" jQuery171010970156005264647="33">select</SPAN></SPAN><SPAN class=k-select unselectable="on" jQuery171010970156005264647="63"> <SPAN class=k-select unselectable="on"> Timestamp: 21-3-2013 14:18:05Error: TypeError: $(...).kendoValidator is not a functionSource File: http://localhost/nead/productenLine: 909$(document).ready(function () { $('#addReview').hide(); var validator = $("#addReview").kendoValidator().data("kendoValidator"); //status = $(".status"); $("<%=submit.ClientID %>").click(function () { if (validator.validate()) { status.text("Hooray! Your tickets has been booked!") .removeClass("invalid") .addClass("valid"); } else { status.text("Oops! There is invalid data in the form.") .removeClass("valid") .addClass("invalid"); } }); });
var _detailDataSource = new kendo.data.DataSource({
transport: {
read: {
type: "POST",
url: "/Admin/GetDetailUsage",
dataType: "json",
data: {
beginDate: function () {
return $('#beginDate').val();
},
endDate: function () {
return $('#endDate').val();
}
}
}
},
schema: {
model: {
fields: {
RequestId: { type: "number" },
RequestDate: { type: "date" },
Interface: { type: "string" },
ProviderName: { type: "string" },
EmployeeId: { type: "string" },
EmployeeName: { type: "string" },
EmployeeType: { type: "string" },
Department: { type: "string" }
}
}
},
pageSize: 20
});
function dashboardChart() {
$("#chart").kendoChart({
dataSource: _detailDataSource,
title: {
text: "Units sold"
},
series: [{
type: "area",
field: "RequestId",
aggregate: "count"
}],
categoryAxis: {
baseUnit: "weeks",
field: "RequestDate"
}
});
}
and then I call the chart like so: dashboardChart();
So, can someone tell me what I'm doing wrong? I want to aggregate the data from the datasource by week and display the number of Requests in an area chart.
Thanks,
Chad.
