当请求过滤器时,KendoUI Grid MemberType为空

时间:2016-09-01 13:58:51

标签: javascript c# kendo-ui kendo-grid

我们正在使用KendoUI网格控件。我们使用Kendo DataSource向我们的Web API请求一些数据:

this.gridDatasource = new kendo.data.DataSource({
            transport: {
                read:
                {
                    url: url,
                    type: 'POST',
                    dataType: 'JSON'
                }
            },
            schema: {
                data: "Data", // records are returned in the "data" field of the response
                total: "Total", // total number of records is in the "total" field of the response
                model: {
                    fields: {
                        name : { type: "string" }
                    },
                }
            },

如您所见,正确定义了我的字段“name”的类型。当我们的Grid向我的API发送Ajax请求时,Kendo发送的FilterDescriptor对象的MemberType为空。有什么想法吗?

enter image description here

0 个答案:

没有答案