modify your transport section

  transport: {       
            read: {
             url:"api/Personale",
              datatype : 'jsonp'
           },
           update : {
             url : function(e){
               console.log(e.models[0]);
               http.put('api/Personale/'+e.models[0].sid,e.models[0]).
success(function(data){

                  console.log("success");

                })
             }

            },
           destroy : {
             url : function(e){
               console.log(e);
                $http.delete('api/Personale' + e.models[0].sid).
                    success(function(data){
                  $location.path('/students');
                });
             }
           },
some thing like this


    

On Tuesday, 29 April 2014 21:20:48 UTC+5:30, Tommaso Cecchi wrote:
>
> i've integrated kendo ui in angularjs following this guide: Angular Kendo 
> UI <http://kendo-labs.github.io/angular-kendo/#/>
>
> Now i'd like to make my grid inline editable. In the angularjs controller 
> i have:
>
> gestionale.controller('mainController', function ($scope, $http) {
>
>    $scope.products = new kendo.data.DataSource({
>        transport: {
>            read: {
>                url: "api/Personale",
>                dataType: "json"
>            }
>        },
>    });});
>
> In the HTML page:
>
> <div kendo-grid k-data-source="products" k-selectable="'row'" 
> k-sortable="true" k-toolbar ='["create"]'
>      k-columns='[
> { "field": "Nome", "title": "Nome"},
> { "field": "Cognome", "title": "Cognome"},
> { "field": "Cellulare", "title": "Cellulare" },
> { command: ["edit", "destroy"], title: "", width: "172px" }
>  ]' k-editable="inline" style="height: 365px"></div>
>
> With this code the grid is correctly populated and i can see the edit and 
> delete button but, when i click on the edit button, the row doesn't go in 
> inline editing mode (when i click on the edit button there is a refresh of 
> the page).
>
> How can i get the inline editing mode? Thanks
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to