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

Documentation Bug

1 Answer 58 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 27 Jul 2012, 05:48 PM
In the documentation here:

http://docs.kendoui.com/api/framework/datasource 

You state under the transport.update section (and probably read, create and delete too) you state:

var dataSource = new kendo.data.DataSource({
    transport: {
        update: function(options) {
            // make AJAX request to the remote service
 
            $.ajax( {
                url: "/orders/update",
                data: options,
                success: function(result) {
                    // notify the DataSource that the operation is complete
 
                    options.success(result);
                }
            });
        }
    }
});

It should say "data: options.data," not "data: options,".


1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Jul 2012, 08:46 AM
Hello Shawn,

 Thank you for pointing this out. I will fix it right away!

Regards,
Atanas Korchev
the Telerik team
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
Shawn
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or