or
template: '#= kendo.toString(DateReceived, "MM/dd/yyyy") #'function getAntiForgeryTokens() { var tokens = { }; $("input[name^='__RequestVerificationToken']").each(function() { tokens[this.name] = this.value; }); return tokens;}$(thing).kendoUpload({ // ... upload: function(event) { event.data = { authenticity_token: $("input[name=authenticity_token]").val() }; }});var proxyDropDownEditor = function(container, options){ var data = [ { text: "none" }, { text: "HTTP" }, { text: "CONNECT"}, { text: "best" } ]; $('<input data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ dataTextField: "text", dataValueField: "text", dataSource: data }); };function cueCollectionEditor(container, options){ var dataSource = new kendo.data.DataSource({ type: "json", transport: { read: "/OrchardLocal/Nyx/EditCueCollection/List?ContentId=29" }, schema: { model: { id: "Id" } } }); $('<input data-text-field="Name" data-value-field="Id" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ autoBind: false, dataSource: dataSource }); //$('<input name="' + options.field + '"/>') // .appendTo(container) // .kendoDropDownList({ // autoBind: false, // dataTextField: "id", // dataValueField: "id", // dataSource: options //}); }Category Object { __metadata={...}, CategoryID=4, CategoryName="Dairy Products", more...}cueCollection Object { Id=4, Name="Carousel 2" } dirty: falseproxyType: "best"{ field: "cueCollection", title: "Cues", editor: cueCollectionEditor //template: kendo.template($("#cueCollectionColumnTemplate").html())}, { field: "Category", width: "150px", editor: categoryDropDownEditor },{ field: "proxyType", title: "Proxy Type", editor: proxyDropDownEditor },{ command: ["edit", "destroy"], title: " ", width: "210px" }schema: { model: { id: "title", fields: { title: { type : "string", nullable: false }, proxyType: { type: "string", defaultValue: "best" }, position : { type: "number", defaultValue: 0 }, cueCollection: { type: "number" },//changing the type to number removed the viewmodel from being returned Category: { type: "string" } //changing the type to string fixed it from being a object returned to the correct value } }}[{"Id":2,"Name":"collection1"},{"Id":4,"Name":"collection2"}]{"Id":2,"Name":"collection1"}cueCollection: { defaultValue: { Id:0, Name: "" } },[{"Id":2,"Name":"collection1"},{"Id":4,"Name":"collection2"}]... function templateCollection(mModel){ if(!mModel) return "none selected"; return mModel.Name; }</script> <script id="cueCollectionColumnTemplate" type="text/x-kendo-tmpl"> #: templateCollection(cueCollection) #</script>{ field: "cueCollection", title: "Cues", editor: cueCollectionEditor, template: kendo.template($("#cueCollectionColumnTemplate").html())},$('<input data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ dataTextField: "Name", dataValueField: "Id", autoBind: false, dataSource: dataSource, optionLabel: "Select..."});var hiddenBox = $('<input type="hidden" data-bind="value:' + options.field + '"/>').appendTo(container);var box = $('<input data-bind="value:' + options.field + '"/>') .appendTo(container);var kendoDropDown = box.kendoDropDownList({ dataTextField: "Name", dataValueField: "Id", autoBind: false, dataSource: dataSource, optionLabel: "Select..."});