This is a migrated thread and some comments may be shown as answers.

After upgrading to Kendo UI 2013.2.716 all the DataSources stopped working !

5 Answers 71 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 21 Jul 2013, 02:33 AM
Hi

I have an application which uses WCF Data Services OData service and works under Kendo UI 2013.1.319 with following syntax:
var clientsDataSource = new kendo.data.DataSource({
    type: "odata",
    serverFiltering: true,
    serverSorting: true,
    transport: {
        read: {
            url: '@Url.Content("~/Services/DataService.svc/ActiveClients")',
            headers: {
                DataServiceVersion: "2.0",
                MaxDataServiceVersion: "2.0"
            },
        },
 
    },
    schema: {
        model: {
            id: "RecId",
            fields: {
                DateStarted: { type: "date" },
                Exported: { type: "boolean" },
            }
        }
    },
    filter: { field: "Inactive", operator: "eq", value: inactiveFilter },
    sort: { field: "CustomerName", dir: "asc" },
});
But as soon as I switched to new version of Kendo UI (2013.2.716) they stopped working.
Could you let me know what has been changed in new version of DataSource for supporting oData services and how should I modify my DataSource definition to work with new version of Kendo UI?

Thanks
Ron Farko

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Jul 2013, 06:58 AM
Hello Ron Farko,

The problem is caused by an issue with retrieving the field name when it is not in defined the model. Please try with the latest internal build(2013.2.722) or to include the fields in the model definition:

fields: {
    DateStarted: { type: "date" },
    Exported: { type: "boolean" },
    Inactive: {type: "InactiveType"},
    CustomerName: {type: "string"}
}
Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ron
Top achievements
Rank 1
answered on 25 Jul 2013, 04:32 AM
Thank you Daniel,

You suggestion worked but how can I get the internal build you mentioned? The latest build on the download page is 2013.2.716.
If this issue is fixed in the new build I don't want to add all those filed definitions and then removed them.

Thanks
Ron
0
Daniel
Telerik team
answered on 26 Jul 2013, 01:06 PM
Hello again Ron,

The internal build is available for download by navigating to the downloads page and clicking the "Latest Internal Builds" link. It should be above the download button.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ron
Top achievements
Rank 1
answered on 27 Jul 2013, 02:16 PM
Hi Daniel,

Maybe I am missing something but on the download page http://www.kendoui.com/download.aspx there is no such a thing as "Latest Internal Builds".  Could you give me the direct URL please?

Thanks
Ron
0
Accepted
Sebastian
Telerik team
answered on 29 Jul 2013, 01:35 PM
Hello Ron,

The latest internal build is available for users with active Kendo UI commercial license under their site account's > Product Files Download section. I hope these directions are helpful.

Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Ron
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Ron
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or