or
module kendo.mobile {
class Application extends Observable {
constructor(options?: ApplicationOptions);
constructor(element?: HTMLElement, options?: ApplicationOptions);
[AcceptVerbs(HttpVerbs.Post)] [JsonParameter(Input = "models", Output = "Offices", DataType = typeof(IList<RegionalOfficeModel>))] public ActionResult Delete(IList<OfficeModel> Offices)
{
//My code to delete
}
@model IEnumerable<
Scholarship2013.Models.AwardCart
>
<
table
id
=
"awardSearchResultGrid"
style
=
"width:100%"
>
<
thead
>
<
tr
>
<
th
data-field
=
"awardName"
>Award Name</
th
>
<
th
data-field
=
"description"
>Award Description</
th
>
<
th
>Essay</
th
>
</
tr
>
</
thead
>
<
tbody
>
@if (Model!=null)
{
foreach (var awc in Model.Where(a => a.Award.IsEssayRequired == true))
{
<
tr
>
<
td
>@awc.Award.AwardName</
td
>
<
td
>@awc.Award.AwardDescription</
td
>
<
td
><
span
id
=
"undo"
class
=
"k-button"
onclick
=
"ShowAward(@awc.AwardID)"
>Add Essay</
span
></
td
>
</
tr
>
}
}
</
tbody
>
</
table
>
@(Html.Kendo().Window().Name("window")
.Title("Essay for ")
.Content(@<
text
>
<
div
>
@Html.Kendo().EditorFor("Value of ID here").Name("Test").Value("test")
</
div
>
</
text
>)
.Visible(false)
.Modal(true)
.Draggable(true)
.Width(1024)
)
<
script
>
function onClose() {
$("#undo").show();
}
$(document).ready(function() {
$("#undo").bind("click", function() {
$("#window").data("kendoWindow").open();
});
});
</
script
>