Hi,
I'm trying to set a type on a property on my nested schema.
In the column template on my KendoUI Grid, I'm binding to the datafield "Month1.EHR".
How do I set that column to be a "number" in my schema model?
I've tried the below, and many other variations, but nothing I've tried has worked.
Thanks.
I'm trying to set a type on a property on my nested schema.
In the column template on my KendoUI Grid, I'm binding to the datafield "Month1.EHR".
How do I set that column to be a "number" in my schema model?
I've tried the below, and many other variations, but nothing I've tried has worked.
dataSource: {
type:
"aspnetmvc-ajax"
,
transport: {
read: {
url:
"@Url.Action("
_GetEHR
", "
Performance
")"
, type:
"POST"
,
contentType:
"application/json"
,
data:
//searchOptions()
{
periodDate:
function
() {
return
kendo.toString($(
"#periodDate"
).data(
"kendoDatePicker"
).value(),
"MMM yyyy"
) }
}
},
parameterMap:
function
(options) {
return
JSON.stringify(options);
}
},
serverSorting:
true
,
serverFiltering:
true
,
serverPaging:
true
,
pageSize: 50,
schema: {
model: {
fields: {
AccountName: { type:
"string"
},
Month1: { EHR: { type:
"number"
} },
Month2: { EHR: { type:
"number"
} },
Month3: { EHR: { type:
"number"
} },
Month4: { EHR: { type:
"number"
} },
Month5: { EHR: { type:
"number"
} },
Month6: { EHR: { type:
"number"
} },
Month7: { EHR: { type:
"number"
} },
Month8: { EHR: { type:
"number"
} },
Month9: { EHR: { type:
"number"
} },
Month10: { EHR: { type:
"number"
} },
Month11: { EHR: { type:
"number"
} },
Month12: { EHR: { type:
"number"
} }
}
},
data:
function
(data) {
return
data.Data;
},
total:
function
(data) {
return
data.Total;
}
},
},