So this is my datasource... I would assume the schema is what it would read to render the properties in the sheet, but it's just verbatim taking the JSON object and plopping it in. So example, there's a LastUpdated property on each object, it's not defined in the schema... but it's rendering in the sheet.
Am I missing something?
dataSource: {
transport: {
dataType: "json",
read: {
url: this.baseUrl + "/groups?format=json",
type: "GET",
data: function () {
return {
cohort: $editorData.cohort
};
}
},
/*
update: {
url: baseUrl + "/groups?format=json",
dataType: "json",
type: "POST"
},
*/
},
requestEnd: function (e) {
var response = e.response;
var type = e.type;
console.log("requestEnd", type, response);
},
schema: {
model: {
id: "UserId",
fields: {
UserName: { type: "string", editable: false },
FirstName: { type: "string", editable: false },
LastName: { type: "string", editable: false },
Campus: { type: "string", editable: false },
Cohort: { type: "number", editable: false },
MF1: { type: "number" },
MF3: { type: "number" },
MF4: { type: "number" },
MF2: { type: "number" },
MF5: { type: "number" },
ClerkshipGroup: { type: "number" },
PediatricsStream: { type: "number" },
ProCompGroup: { type: "number" }
}
}
},
<kendo-spreadsheet
ref="spreadsheet"
:toolbar="false"
:sheetsbar="false"
:excel-proxy-URL="'/RestApi/utility/proxy/save'"
:pdf-proxy-URL="'/RestApi/utility/proxy/save'"
:columns="15"
:rows="300"
style="width: 100%; height: 800px">
<kendo-spreadsheet-sheet
:name="'Groups'"
:data-source="dataSource"
:rows="rows"
:columns="columns"
>
</kendo-spreadsheet-sheet>
</kendo-spreadsheet>