Hi,
Does the Kendo datasource support the following JSON format?
var people = [
{
"Person": { Name: "Person 1"},
"Person": { Name : "Person 2"}
}
];
My current schema only loads the last record from the data source when connected to a grid. I am using the Q1'12 beta.
$("#grid").kendoGrid({
dataSource: {
data: people,
schema: {
type : "json",
model: {
fields: {
Name: { type: "string" }
}
}
}
},
height: 250,
columns: [
{
field: "Person.Name",
title: "Name"
}
]
});
Thanks.
Morten
Does the Kendo datasource support the following JSON format?
var people = [
{
"Person": { Name: "Person 1"},
"Person": { Name : "Person 2"}
}
];
My current schema only loads the last record from the data source when connected to a grid. I am using the Q1'12 beta.
$("#grid").kendoGrid({
dataSource: {
data: people,
schema: {
type : "json",
model: {
fields: {
Name: { type: "string" }
}
}
}
},
height: 250,
columns: [
{
field: "Person.Name",
title: "Name"
}
]
});
Thanks.
Morten