2

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?

1
  • Did you try the 'parse' method on the schema? Feb 4, 2014 at 17:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.