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

Remote DataSource Not Working

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yuan
Top achievements
Rank 1
Yuan asked on 20 Sep 2015, 02:27 PM

I have a kendo grid defined as below:

$("#myGrid").kendoGrid({
    dataSource: {
        read: {
            url: "/getData",
            dataType: "json"
        },
        schema: {
            model: {
                id: "myId",
                fields: {
                    myId: {},
                    field1: {},
                    field2: {},
                }
            }
        }
    },
    columns: [{
        field: "field1",
        title: "Field 1"
    }, {
        field: "field2",
        title: "Field 2"
    }]
});

 

But on loading the page, no data read request is fired. Please advise what I did wrong here?

 

Thanks,

1 Answer, 1 is accepted

Sort by
0
Yuan
Top achievements
Rank 1
answered on 20 Sep 2015, 05:23 PM

Sorry, I was missing the "transport" element.

Tags
Grid
Asked by
Yuan
Top achievements
Rank 1
Answers by
Yuan
Top achievements
Rank 1
Share this question
or