or
<script type="text/x-kendo-tmpl" id="paperlist-template"> ... <div>${kendo.toString(PublicationDate, "dd MMMM yyyy")}</div> ...</script>@(Html.Kendo().ListView(Model.Papers)...@(Html.Kendo().ListView<IEnumerable<PaperListItem>>()...GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.DateTimeZoneHandliig = Newtonsoft.Json.DateTimeZoneHandling.Local;<section> @(Html.Kendo().Window() .Modal(true) .Name("window") .Height(200) .Width(400) .Title("Case Documents") .Visible(false) .LoadContentFrom("Index", "Home") .Pinned(true) ) <a id="openButton">Open Window</a>// this works when the page is loaded $(function () { $("#window").data("kendoWindow").center().open(); });// this does not work, even if I remove the above code, it says $(...).data(...) is undefined $($("#openButton").click(function () { $("#window").data("kendoWindow").center().open(); }));