AngularJS and ng-grid - auto save data to the server after a cell was changed

前端 未结 7 1643
悲哀的现实
悲哀的现实 2020-12-02 08:51

My Use Case is pretty simple. A User, after editing a Cell (enableCellEdit: true), should have the data \"automatically\" sent to the server (on cell blur). I tried differen

7条回答
  •  旧巷少年郎
    2020-12-02 09:32

    If you're using UI Grid 3.0 that event is: uiGridEventEndCellEdit

    $scope.$on('uiGridEventEndCellEdit', function (data) {
        console.log(data.targetScope.row.entity);
    }
    

提交回复
热议问题