or
var entityModel = kendo.data.Model.define({ id: 'Id', fields: { Id: { editable: false, defaultValue: '00000000' }, Name: {}, Created: { type: 'date' }, Contract: { StartDate: { type: 'date' }, EndDate: { type: 'date' }, Received: { type: 'date' } }, Vendor: { Name: {}, Street: {}, City: {}, State: {}, Zip: {}, Phone: {}, Email: {} }, Invoices: [] }});var entityDataSource = new kendo.data.DataSource({ schema: { model: entityModel }, transport: { ... }});<div data-template="invoiceTemplate" data-bind="source: Invoices"></div>@{ ViewBag.Title = "Index";}<script src="@Url.Content("~/scripts/models/personModel.js")" type="text/javascript"></script><script src="@Url.Content("~/scripts/stores/personStore.js")" type="text/javascript"></script><script src="@Url.Content("~/scripts/views/personView.js")" type="text/javascript"></script> <script id="PersonDetail" type="text/x-kendo-template"> @Html.Partial("PersonDetail")</script> <div class="k-rtl"> <div id="PersonGrid"></div></div> @*@(Html.Kendo().TimePicker() .Name("timepicker") .Value("10:00 AM"))*@$(function () { $("#PersonGrid").kendoGrid({ dataSource: personStore, height: "600px", sortable: { mode: "multiple", allowUnsort: true }, pageable: true, //groupable: true, scrollable: true, selectable: "row", filterable: true, columns: [ { command: [{ name: "edit", text: "edit" }, { name: "destroy", text: "del" }], title: "", width: 150 }, { field: "FName", title: "First Name", width: 50 }, { field: "LName", title: "Last Name", width: 100 } ], editable: { mode: "popup",confirmation: "Are you sure?", template: kendo.template($("#PersonDetail").html()) }, edit: function (e) { var title = $(e.container).parent().find(".k-window-title"); var update = $(e.container).parent().find(".k-grid-update"); var cancel = $(e.container).parent().find(".k-grid-cancel"); $(title).html('<div>Edit</div>'); $(update).html('<span class="k-icon k-update"></span>Save'); $(cancel).html('<span class="k-icon k-cancel"></span>Cancel'); }, toolbar: [{ name: "create", text: "Add"}] });});Microsoft JScript runtime error: Invalid template:'@(Html.Kendo().TimePicker() .Name("timepicker") .Value("10:00 AM"))<div id="splitter" style="min-height:700px"> <div class="left-panel" style="width:100px"> <div id="cashPanel" class="left-panel"></div> </div> <div > <div id="offsetPanel" class=""></div> </div> <div> <div id="premiumList" style="height:100%"> <div id="searchPremMatchList"></div> </div> </div></div>
$("#splitter").kendoSplitter({ orientation: "horizontal", panes: [ { collapsible: false, size: "250px" }, { collapsible: false, size: "700px" }, { collapsible: false } ]});<div data-role="modalview" id="modalview-add-to-cart" style="width: 95%; height: 270px;"> <div data-role="header"> <div data-role="navbar"> <span>Add to order</span> <a data-click="closeModalView" data-role="button" data-align="right">Cancel</a> </div> </div> <div class="modal-view-inset"> <div id="modalview-add-to-cart-order"></div> <div><input type="text" id="modalview-add-to-cart-customer-note" placeholder="Any special instructions?"></input></div> </div> <div data-role="footer"> <a data-click="addToCart" type="button" data-role="button">Add To Your Order</a> </div></div>$('#modalview-add-to-cart').data("kendoMobileModalView").open();<a data-rel="modalview" href="#modalview-add-to-cart" class="menu-item-buy" >+</div>