or
<
head
>
<
meta
charset
=
"utf-8"
/>
<
title
>@ViewBag.Title - My ASP.NET MVC Application</
title
>
<
link
href
=
"~/favicon.ico"
rel
=
"shortcut icon"
type
=
"image/x-icon"
/>
<
meta
name
=
"viewport"
content
=
"width=device-width"
/>
<
link
rel
=
"stylesheet"
href
=
"~/Themes/style.css"
/>
<
script
src
=
"~/Scripts/jquery-1.7.1.min.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"~/Scripts/jquery-ui-1.8.20.min.js"
type
=
"text/javascript"
></
script
>
</
head
>
<
body
>
@RenderBody()
</
body
>
<
link
href
=
"@Url.Content("
~/Content/kendo/2013.1.514/kendo.common.min.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Content/kendo/2013.1.514/kendo.metro.min.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Content/kendo/2013.1.514/kendo.dataviz.metro.min.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2013.1.514/jquery.min.js")"></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2013.1.514/kendo.web.min.js")"></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2013.1.514/kendo.aspnetmvc.min.js")"></
script
>
@*USED FOR KENDO CHARTS*@
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2013.1.514/kendo.dataviz.min.js")"></
script
>
</
html
>
@model List<
Sanwin.ViewModels.Collaboration.CollaborationNoteListModel
>
@using Sanwin.Web;
@using Kendo.Mvc.UI
@{
Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
// Layout = null;
}
@section left
{
@Html.Partial("~/Views/Collaboration/_CollaborationNavigation.cshtml")
}
<
link
rel
=
"stylesheet"
href
=
"@Url.Content("
~/content/jQuery-Sticky-Notes/css/jquery.stickynotes.css")"
type
=
"text/css"
>
@*<
script
src
=
"~/Scripts/jquery-1.7.1.min.js"
type
=
"text/javascript"
></
script
>*@
@*<
script
src
=
"~/Scripts/jquery-ui-1.8.20.min.js"
type
=
"text/javascript"
></
script
>*@
<
script
type
=
"text/javascript"
src
=
"@Url.Content("
~/content/jQuery-Sticky-Notes/script/jquery.stickynotes.js")"></
script
>
<
div
class
=
"product_body"
>
<
div
class
=
"account-page"
>
<
div
class
=
"page-title"
>
<
h1
style
=
"float: left"
>My Notes
</
h1
>
</
div
>
<
div
class
=
"clear"
>
</
div
>
<
div
class
=
"body"
>
<
div
class
=
"section-body"
id
=
"notes11"
style
=
"width:800px;height:600px;"
>
</
div
>
</
div
>
</
div
>
</
div
>
<
script
>
</
script
>
<
script
type
=
"text/javascript"
>
// wait for the DOM to be loaded
$(document).ready(function () {
var options = {
notes: [{
"id": 1,
"text": "Test Internet Explorer",
"pos_x": 50,
"pos_y": 50,
"width": 200,
"height": 200,
}]
}
// $("#noteList").stickyNotes(options);
$('#notes11').stickyNotes();
});
</
script
>
Uncaught TypeError: Object [object Object] has no method 'stickyNotes'
@(Html.Kendo().Grid(Model.Available).Name("s").DataSource(d => d.Ajax()).Filterable())
or
@(Html.Kendo().Grid().Name("s").DataSource(d => d.Ajax()[read data ...]).Filterable())
<
script
>
$(function () {
$("#scheduler").kendoScheduler({
date: new Date("2013/1/1"),
startTime: new Date("2013/1/1 07:00 AM"),
height: 600,
views: [
"day",
{ type: "month", selected: true },
"month",
"agenda"
],
timezone: "Etc/UTC",
//editable: { template: kendo.template($("#schedulerTemplate").html()) },
dataSource: {
batch: true,
transport: {
read: {
url: "/Home/CalendarioCargar",
dataType: "jsonp"
},
update: {
url: "/Home/CalendarioUpdate",
dataType: "json"
},
create: {
url: "/Home/CalendarioAdd",
dataType: "json"
},
destroy: {
url: "/Home/CalendarioRemove",
dataType: "jsonp",
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: kendo.stringify(options.models) };
}
}
},
schema: {
model: {
id: "TaskID",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "FechaIni" },
end: { type: "date", from: "End" },
startTimezone: { from: "StartTimezone" },
endTimezone: { from: "EndTimezone" },
description: { from: "Description" },
recurrenceId: { from: "RecurrenceID" },
recurrenceRule: { from: "RecurrenceRule" },
recurrenceException: { from: "RecurrenceException" },
ownerId: { from: "OwnerID", defaultValue: 1 },
isAllDay: { type: "boolean", from: "IsAllDay" }
}
}
},
filter: {
logic: "or",
filters: [
{ field: "ownerId", operator: "eq", value: 1 },
{ field: "ownerId", operator: "eq", value: 2 }
]
}
},
resources: [
{
field: "ownerId",
title: "Owner",
dataSource: [
{ text: "Alex", value: 1, color: "#f8a398" },
{ text: "Bob", value: 2, color: "#51a0ed" },
{ text: "Charlie", value: 3, color: "#56ca85" }
]
}
]
});
$("#people :checkbox").change(function (e) {
var checked = $.map($("#people :checked"), function (checkbox) {
return parseInt($(checkbox).val());
});
var filter = {
logic: "or",
filters: $.map(checked, function (value) {
return {
operator: "eq",
field: "ownerId",
value: value
};
})
};
var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.dataSource.filter(filter);
});
});
</
script
>