Hello guys!
Basically, what I want is just to bind json formatted First and Last names to grid.
Hers is my datasource : http://10.50.0.106/DLC/api/grid?format=json
result ====>
http://10.50.0.106/DLC/api/grid?format=json
Here is how I'm trying to bind it to grid:
$("#grid").kendoGrid({
dataSource: {
type: "jsonp",
transport: {
read: {
url: "http://10.50.0.106/DLC/api/grid?format=json",
dataType: "jsonp"
}
},
pageSize: 1
},
schema: {
model: {
fields: {
FirstName: { type: "string" },
LastName: { type: "string" }
}
}
},
columns: [{
field: "FirstName",
width: 90,
title: "First Name"
}, {
field: "LastName",
width: 90,
title: "Last Name"
}]
});
As result I see blank grid with headers.
I receive no errors, warnings or exceptions. Can someone tell me what am I missing or doing wrong?
This actually drives me crazy =)
Basically, what I want is just to bind json formatted First and Last names to grid.
Hers is my datasource : http://10.50.0.106/DLC/api/grid?format=json
result ====>
http://10.50.0.106/DLC/api/grid?format=json
{"Result":{"FirstName":"coder","LastName":"coder"}}
Here is how I'm trying to bind it to grid:
$("#grid").kendoGrid({
dataSource: {
type: "jsonp",
transport: {
read: {
url: "http://10.50.0.106/DLC/api/grid?format=json",
dataType: "jsonp"
}
},
pageSize: 1
},
schema: {
model: {
fields: {
FirstName: { type: "string" },
LastName: { type: "string" }
}
}
},
columns: [{
field: "FirstName",
width: 90,
title: "First Name"
}, {
field: "LastName",
width: 90,
title: "Last Name"
}]
});
As result I see blank grid with headers.
I receive no errors, warnings or exceptions. Can someone tell me what am I missing or doing wrong?
This actually drives me crazy =)