or
.km-ios
6
.km-tabstrip .km-
icon
.km-icon-trophies
{
font-size
:
22px
;
margin-bottom
:
-7px
;
color
: orange
!important
;
}
<
div
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
>
<
a
href
=
"#tabstrip-home"
data-icon
=
"home"
>Home</
a
>
<
a
href
=
"#tabstrip-journal"
data-icon
=
"icon-trophies"
>Journal</
a
>
</
div
>
</
div
>
$('#TopCalcsGrid').kendoGrid({
dataSource: {
data: topcalcs,
schema: {
model: {
fields: {
Name: { type: "string" },
Count: { type: "number" }
}
}
}
},
sortable: {
allowUnsort: true
},
reorderable: true,
resizable: true,
columns: [{
field: "Name",
title: "Calculator"
}, {
field: "Count",
title: "Count"
}],
sort: { field: "Count", dir: "desc" }
});
$("#calendar").kendoScheduler({
views: [
"day",
{ type: "week", selected: true },
"month",
"agenda"
],
dataSource: {
serverFiltering: true,
timezone: "US/Eastern",
transport: {
read: {
url: webServiceBaseUrl + "readEvents",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json"
},
update: {
url: webServiceBaseUrl + "updateEvents",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json"
},
create: {
url: webServiceBaseUrl + "createEvents",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json"
},
destroy: {
url: webServiceBaseUrl + "destroyEvents",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json"
},
parameterMap: function (data, operation) {
if (operation == "create" || operation == "update") {
if (data.contactID == null || data.contactID == 0) {
data.contactID = 4;
}
if (data.categoryID == null || data.categoryID == 0) {
data.categoryID = 8;
}
var editor = $("#editor").data("kendoEditor");
if (editor != null) {
data.eventContent = editor.value();
}
data.lastEditDate = "";
if (operation == "create") {
data.ownerID = $('#userName').val();
}
if (operation == "update") {
data.lastEditorID = $('#userName').val();
}
return JSON.stringify({ eventItem: data });
} else if (operation == "read") {
var calender = $("#calendar").data("kendoScheduler");
return JSON.stringify({ selectedDate: $("#calendar").data("kendoScheduler").date() });
} else if (operation == "destroy") {
return JSON.stringify({ id: data.id });
}
}
},
schema: {
data: "d",
model: {
id: "id",
fields: {
id: { from: "id", type: "number" },
description: { from: "eventContent", type: "string" },
end: { from: "eventEnd", type: "date" },
endTimezone: { from: "endTimezone", type: "string" },
isAllDay: { from: "isAllDay", type: "boolean" },
recurrenceException: { from: "recurrenceException", type: "string" },
recurrenceID: { from: "recurrenceID", type: "number" },
recurrenceRule: { from: "recurrenceRule", type: "string" },
start: { from: "eventStart", type: "date" },
startTimezone: { from: "startTimezone", type: "string" },
title: { from: "title", type: "string", defaultValue: "No title", validation: { required: true} },
ownerID: { from: "ownerID", type: "string" },
categoryID: { from: "categoryID", type: "number", nullable: true },
outageNumber: { from: "outageNumber", type: "string" },
contactID: { from: "contactID", type: "number" },
locations: { from: "locations", type: "string" },
lastEditorID: { from: "lastEditorID", type: "string" },
scopeOfWork: { from: "scopeOfWork", type: "string" },
wbpLink: { from: "wbpLink", type: "string" }
}
}
}
}
});
{"__type":"Event","id":61,"wbpLink":null,"eventEnd":"\/Date(1381204800000)\/","endTimezone":"","isAllDay":true,"recurrenceException":"","recurrenceID":0,"recurrenceRule":"","eventStart":"\/Date(1381204800000)\/","startTimezone":"","title":"test","ownerID":"owner","categoryID":1,"eventContent":"test","outageNumber":"test","contactID":4,"locations":"test","scopeOfWork":"test","lastEditorID":"","lastEditDate":"\/Date(1381377600000)\/"}