当前位置: 动力学知识库 > 问答 > 编程问答 >

json - Kendo UI Editor, can not handle oData format

问题描述:

I've implemented a kendo ui imagebrowser. My read function returns json in odata format (d.results).

imageBrowser: {

messages: {

dropFilesHere: "Drop files here"

},

schema: {

model: {

id: "Id",

fields: {

name: {field: "Name" },

type: { field: "Type" },

size: { field: "Size" }

}

}

},

transport: {

read: {

url: xxx

dataType: "json",

type: "GET",

contentType: "application/json"

}

}

Is there way to handle odata format? Because i think imageBrowser not using kendo datasource. So is there way to parse data to simply json format, or set odata type somewhere?

分享给朋友:
您可能感兴趣的文章:
随机阅读: