or
$("#gridCityCodes").css("top", "46px").kendoGrid({ dataSource: this.gridDataSource, sortable: true, editable: true, selectable: "multiple", navigatable: true, filterable: true, resizable: true, columnMenu: true, change: this.gridChanged, toolbar: [{ name: "save", text: userMsgs.Save }, { name: "cancel", text: userMsgs.Cancel}], columns: [{ field: "CityAlpha", width: "100px", title: userMsgs.CityCode, filterable: this.fixGridFilterPopups }, { field: "CityNumeric", width: "150px", title: userMsgs.IataCityCode, filterable: this.fixGridFilterPopups }, { field: "Description", width: "300px", title: userMsgs.Description, filterable: this.fixGridFilterPopups }, { field: "NextFlightEnabled", width: "200px", title: userMsgs.NextFlightEnabled, filterable: this.fixGridFilterPopups}], dataBound: function () { window.selectedModuleViewModel.reHighlightSelectedRows(); window.selectedModuleViewModel.pullColumnsForFiltering(); } }); fixGridFilterPopups: { ui: function (element) {/* logic commented out to do nothing right now. */ } }var ObservableObject = Observable.extend({ init: function(value) { var that = this, member, field, parent = function() { return that; }; Observable.fn.init.call(this); for (field in value) { member = value[field]; if (field.charAt(0) != "_") { member = that.wrap(member, field, parent); // <-------- error occurs here } that[field] = member; } that.uid = kendo.guid(); },@using Kendo.Mvc.UI;@model DataModels.Picking.PickingAssignmentItemType@(Html.Kendo().DropDownList() .Name("Type") .DataTextField("Description") .DataValueField("TypeCode") .DataSource(source => source .Read("GetAssignmentTypes", "Picking") .ServerFiltering(true) ))@using Kendo.Mvc.UI;@model DataModels.Picking.PickingAssignmentItemViewModel@(Html.Kendo().DropDownList() .Name("ParentItem") .DataTextField("ItemId") .DataValueField("ItemId") .DataSource(source => { source.Read(read => { read.Action("GetAssignmentKits", "Picking") .Data("filterTypes"); }) .ServerFiltering(true); }) .CascadeFrom("Type")) <script> function filterTypes() { return { Type: $("#Type").val() }; }</script>
@Html.Label("Search")@Html.TextBox("catalogSearch")<input id="searchCatalogButton" type="button" value="Go" />@(Html.Kendo().TreeView().Name("catalogTree")
.DataSource(dataSource => dataSource.Read(read => read.Action("GetCatalogItems", "Catalog"))))[ { "id": 1, "text": "Top #1", "matching": false, "expanded": true, "hasChildren": true, "items": [ { "id": 2, "text": "Mid #1", "matching": false, "expanded": true, "hasChildren": true, "items": [ { "id": 3, "text": "Bottom #1", "matching": true, "expanded": false, "hasChildren": false } ] }, { "id": 4, "text": "Mid #2", "matching": false, "expanded": false, "hasChildren": true } ] }]