Note: This is a duplicate of http://www.telerik.com/forums/editable-grid-with-angular---update-not-working as I am not sure wheter this is a problem of the DataSource configuration or the grid configuration (or both).
I am using a kendo-ui grid together with angular and would like to
use it's edit functionality. However the update function is never called
when trying to edit its contents.
This is how I set the grid:
Here is a fiddle to demonstrate it: http://jsfiddle.net/xLp6rLtj/
Even if I'm using a url instead of function in the
datasource.transport.update parameter, no request is made (and the
button can't be released).
What am I missing?
I am using a kendo-ui grid together with angular and would like to
use it's edit functionality. However the update function is never called
when trying to edit its contents.
This is how I set the grid:
angular.module("KendoDemos", [ "kendo.directives" ]) .controller("MyCtrl", function($scope){ $scope.mainGridOptions = { dataSource: { type: "odata", transport: { update: function(options){ console.log("updated"); } } }, editable: "inline", columns: [{ field: "FirstName", title: "First Name", width: "120px" },{ field: "LastName", title: "Last Name", width: "120px" },{ field: "Country", width: "120px" },{ field: "City", width: "120px" },{ command: ["edit", "destroy"], title: " ", width: "250px" }] }; })Here is a fiddle to demonstrate it: http://jsfiddle.net/xLp6rLtj/
Even if I'm using a url instead of function in the
datasource.transport.update parameter, no request is made (and the
button can't be released).
What am I missing?