Jquery Kendo远程数据源和参数

Jquery Kendo远程数据源和参数,jquery,kendo-ui,datasource,kendo-asp.net-mvc,Jquery,Kendo Ui,Datasource,Kendo Asp.net Mvc,我尝试调用read方法,但也传入参数。下面是我的代码,我可以看到正在传递值,但控制台中有一个错误: var dataSource = new kendo.data.DataSource({ transport: { read: { url: URL + "/Read?StudentNum=" + studentNum + "AndStudentDept=" + studentDept,

我尝试调用read方法,但也传入参数。下面是我的代码,我可以看到正在传递值,但控制台中有一个错误:

    var dataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: URL + "/Read?StudentNum=" + studentNum + "AndStudentDept=" + studentDept,
                dataType: "json",
                data: {
                    studentNum: studentNum,
                    studentDept: studentDept
                }
            },
            pageSize: 5,
            schema: {
                data: function (response) {
                    console.log(response);
                    return response.Data.dsstudentReport.ttstudentReport;
                },
            }
        }
    });

此错误经常发生,因为
模式中没有
模型
。尝试添加它。 例如:

它表示使用
read
方法获取的数据结构


Ps.
架构
必须与
传输
处于同一级别。在您的情况下,
schema
transport

内,谢谢!我并没有注意到我在传输中放置了模式,谢谢你们指出这一点。根据您提供的信息,我现在正在进行此项工作。
The error is: kendo.all.js:7165 Uncaught TypeError: e.slice is not a function

I will continue to keep looking but if anyone could help me identify where I have made a mistake, that would be greatly appreciated. I am new to Kendo and still learning.


Thanks
transport: {},
schema: {
        model: {
            id: "id",
            fields: {
                name: { type: "string" },
                isActive: { type: "boolean" },
                age: { type: "number" }
            }
        }
    }