i am populating multiple observables and binding them to grids without much problem. for example i have code like this that i am using to populate a grid:
var viewModel = kendo.observable({
partsSource: new kendo.data.DataSource({
transport: {
read: {
url: "/api/Parts",
dataType: "json"
}
}
})
});
this is calling a service that returns IEnumerable<Part>. if i only want to return a specific part i call my service like this /api/Parts/7 and i know from fiddler that it returns that single part but i can't get it populate my observable.
i guess the issue is that the service now returns only <Part> and not the enumerable. in fiddler it looks identical to the data used in the examples that seem to work flawlessly but i can't seem to find the proper syntax with remote data.
any ideas? thanks!