I'm trying to limit the columns returned by a oData query. Does dataSource support the oData $select query option? I was able to get $expand working and it was implemented at the same time, I recall. This is what I'm attempting, but I'm not sure if I'm implementing $select correctly.
var
gridDataSource =
new
kendo.data.DataSource({
type:
"odata"
,
schema: {
data:
function
(data) {
if
(data.value) {
return
data.value;
}
delete
data[
"odata.metadata"
];
return
[data];
},
total:
function
(data) {
return
data[
"odata.count"
];
}
},
pageSize: 10,
scrollable:
false
,
sort: { field:
"Name"
, dir:
"asc"
},
transport: {
read: {
url:
"/GLMEntitiesModelService.svc/Devices"
,
data: {
$expand:
"Location"
,
$select:
"ID,LocationFK,Name,Vendor,Product,Component"
}
}
}
});