or
<
div
id
=
"chart"
></
div
>
<
script
>
$("#chart").kendoChart({
seriesDefaults: {
width: 1
},
series: [ {
type: "line",
line: {
width: 1
},
markers: {
visible: true,
size: 3
},
data: [1, 2, 3, 2, 4, 6, 2, 5, 1, 4, 1, 3, 4, 4, 2, 5, 6, 4, 3, 4, 2, 2, 4, 5, 6, 2, 3, 0, 1]
}],
categoryAxis: {
justified: true,
majorGridLines: {
visible: true,
step: 8
},
minorGridLines: {
visible: true,
step: 2
},
majorTicks: {
step: 8,
color: "#ff0000",
size: 10,
width: 2
},
minorTicks: {
visible: true,
step: 2,
color: "#ff00ff",
size: 5
}
}
});
</
script
>
c.Bound(p => p.ServiceCost).Hidden(true).Width(100).Format("{0:$0.00}");
c.Bound(p => p.AddressLine1).Title("Address").Width(90);
c.Bound(p => p.City).Width(90);
c.Bound(p => p.State).Title("State").Width(75);
c.Bound(p => p.Zip).Width(75);
c.Bound(p => p.ContactName).Hidden(true).Title("Contact<
br
/>Name").Width(100);
c.Bound(p => p.PhoneNumber).Hidden(true).Title("Site<
br
/>Phone").Width(120);
c.Bound(p => p.PhoneExtension).Hidden(true).Title("Site<
br
/>Ext").Width(90);
c.Bound(p => p.Fax).Hidden(true).Title("Site<
br
/>Fax").Width(100);
c.Bound(p => p.Email).Hidden(true).Title("Site<
br
/>Email").Width(150);
c.Bound(p => p.Website).Hidden(true).Title("Website").Width(200);
<
label
class
=
"clean"
><
input
type
=
"checkbox"
id
=
"ContactName"
class
=
"basicChk"
/>Contact Name</
label
></
td
><
td
>
<
label
class
=
"clean"
><
input
type
=
"checkbox"
id
=
"PhoneNumber"
class
=
"basicChk"
/>Site Phone</
label
></
td
><
td
>
<
label
class
=
"clean"
><
input
type
=
"checkbox"
id
=
"PhoneExtension"
class
=
"basicChk"
/>Site Phone Ext.</
label
></
td
><
td
>
$(".basicChk").bind('click', function () {
var grid = $('#Providers').data("kendoGrid");
if (this.checked) {
grid.showColumn(this.id);
}
else {
grid.hideColumn(this.id);
}
});
var kendoOrderWindow = $("<
div
id
=
'orderWindow'
></
div
>").kendoWindow({
title: "Order "+orderIndex,
resizable: false,
modal: true,
width: 1000,
draggable: false,
content: "myURLcontent",
open: function (e) {
this.wrapper.css({ top: 50 });
}
});
kendoOrderWindow.data("kendoWindow")
.center()
.open()
$("#button_close").click(function(e) {
e.preventDefault();
$('#orderWindow').data("kendoWindow").close();
});
kdsStudentInformation =
new
kendo.data.DataSource({
transport: {
//transport: defines the URL endpoints for remote data (read/insert/update/delete)
read:
function
(options) {
$.getJSON(Helpers.toServicesUrl(
"/GetctrlEWSStudentInfoPanel"
),
{
studentId: studentIDParm,
//935824
username: WSIPCContext.UserName,
schoolCode: schoolCodeParm,
schoolYear: schoolYearParm,
districtId: WSIPCContext.DistrictId
},
function
(data) {
stuInfox = data.GetctrlEWSStudentInfoPanelResult.RootResults;
kdsStudentInformation.data(stuInfox);
loadStudent();
}).fail(
function
(jqXHR) {
options.error(jqXHR);
});
}
//read
},
//transport
schema: {
//tells the Data Source where to find the result set
data:
"stuInfox"
}
});