I saved the Grid edit demo to a new directory and updated the links and it worked fine.
Then I want to change the data path to the same file on my site so I copied the text from the link
http://demos.kendoui.com/service and saved it as Products.jsonp
Both files are in the example directory and it will not bind the data even after I changed the read: path
to match where I put Products.jsonp (not sure about the directory structues if any are required).
It would be great to get a feel for the grid edit component if anybody can help please.
Here's the code I have:
$(document).ready(function () {
var crudServiceBaseUrl = "http://mydot.com/KendoUI/examples", //(This is where my files are now)
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl + "/Products",
dataType: "jsonp"
},
update: {
url: crudServiceBaseUrl + "/Products/Update",
dataType: "jsonp"
},
destroy: {
url: crudServiceBaseUrl + "/Products/Destroy",
dataType: "jsonp"
},
create: {
url: crudServiceBaseUrl + "/Products/Create",
dataType: "jsonp"
Why does this data not bind? Can anybody help?
Thank you...
Then I want to change the data path to the same file on my site so I copied the text from the link
http://demos.kendoui.com/service and saved it as Products.jsonp
Both files are in the example directory and it will not bind the data even after I changed the read: path
to match where I put Products.jsonp (not sure about the directory structues if any are required).
It would be great to get a feel for the grid edit component if anybody can help please.
Here's the code I have:
$(document).ready(function () {
var crudServiceBaseUrl = "http://mydot.com/KendoUI/examples", //(This is where my files are now)
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: crudServiceBaseUrl + "/Products",
dataType: "jsonp"
},
update: {
url: crudServiceBaseUrl + "/Products/Update",
dataType: "jsonp"
},
destroy: {
url: crudServiceBaseUrl + "/Products/Destroy",
dataType: "jsonp"
},
create: {
url: crudServiceBaseUrl + "/Products/Create",
dataType: "jsonp"
Why does this data not bind? Can anybody help?
Thank you...