This is a migrated thread and some comments may be shown as answers.

Grid Editing - Binding Problem - No Data Shows

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 10 Jan 2012, 02:43 AM
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...

1 Answer, 1 is accepted

Sort by
0
Pedro
Top achievements
Rank 2
answered on 10 Jan 2012, 02:19 PM
Where is your grid code?

Usually the binding is done there.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
Pedro
Top achievements
Rank 2
Share this question
or