我们正在使用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为空。有什么想法吗?