#custom-tabstrip .km-state-active .km-
icon
{
background
:-moz-linear-gradient(
top
,
#ffffff
,
#2468A5
);
/* Firefox */
background : -webkit-gradient(linear,
left
top
,
left
bottom
, from(
#ffffff
), to(
#2468A5
));
/* Safari, Chrome */
}
html,
body
{
height
:
100%
;
}
var
myDS = new kendo.data.DataSource({
type: "odata",
transport: {
read: { url: "http://localhost:2000/Ajax/Lists/PassageDataService.svc/Passages/"
//, dataType: "json"
}},
schema: {
data: "d.results", model: {id: "SeqId", fields: myObject}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true,
sort: { field: "SeqId" }
});
When i Try to add objet to my data source with
myDS.add(myObject);
the object is added (I can see it on firebug), all goes fine but when i look at the page the new object is not on the kendo grid and firebug show an error "d.d is not defined"
If i use Json instead of odata, add object works fine but the rest is broken (pagging filtering etc with dataservice).
Anyone has ever tried to add row on buton click event to kendo grid using odata and dataservice?
thanks,
Laurent