When Calling sync()

2 posts, 0 answers
  1. Robert Kaucher
    Robert Kaucher avatar
    56 posts
    Member since:
    Oct 2010

    Posted 21 Mar 2013 Link to this post

    "Object doesn't support property or method 'call'".

    I am getting the above error when I try to call the sync method on the DataSource (Kendo UI Complete v2012.3.1315).

    I am using the helper functions from Remco's post here:
    forecastDataSource = new kendo.data.DataSource({
            batch: true,
            schema: {
                id: "Id",
                model: {
                    fields: {
                        Year: { type: "number" },
                        Quantity: { type: "number" }
            type: "odata",
            transport: {
                read: function (options) {
                    var url = forecastReadUrl;
                update: function (options) {
                    requestBatchUpdate(options.data.models, "PAR_Forecast({0})").done(options.success).fail(options.error);
            error: function (e) {
                com.showInfoError("Error: ", "Unable to get data for forecast. " + e.errorThrown);
            requestStart: function (e) {
                // handle event
            requestEnd: function (e) {
  2. Alexander Valchev
    Alexander Valchev avatar
    2873 posts

    Posted 25 Mar 2013 Link to this post

    Hi Robert,

    I would like to remind you that this code was not provided from a member of KendoUI Team. If you have any problems with it it would be best to contact its author.

    As an assumption, I believe that the problem might be caused by the missing transport methods - create and destroy methods are not implemented. If the DataSource contains new or deleted records, upon sync it will try to call the respective transport methods.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top