Not sure if this can help you, because I am also starting to play with the new ng network.
It seems that a lot has changed. From what I learned, I can tell you that there is no longer a need for cellTemplate if you want to have a drop down list. It is already integrated.
Activate it as follows:
app.controller('MainCtrl', ['$scope', '$http', function($scope, $http) { $scope.genderTypes = [{ ID: 1, type: 'female' }, { ID: 2, type: 'female' }, { ID: 3, type: 'both' }, { ID: 4, type: 'none' }, ]; $scope.gridOptions = { enableSorting: true, enableFiltering: true, enableCellEditOnFocus: true, columnDefs: [{ field: 'name', sort: { direction: 'desc', priority: 1 } }, { field: 'gender', editType: 'dropdown', enableCellEdit: true, editableCellTemplate: 'ui-grid/dropdownEditor', editDropdownOptionsArray: $scope.genderTypes, editDropdownIdLabel: 'type', editDropdownValueLabel: 'type' }, { field: 'company', enableSorting: false }], onRegisterApi: function(gridApi) { grid = gridApi.grid; } }; $http.get('https://rawgit.com/angular-ui/ui-grid.info/gh-pages/data/100.json') .success(function(data) { $scope.gridOptions.data = data; }); } ]);
I'm not sure if I like this approach, but time and use will say ...
Oh, and I didn’t find out how to detect the changes. Continue searching for (lousy) documentation for the event, or if I need to look at the grid data for changes.
Tell me if you found something about this.
Still have fun with this plunker
Update:
I learned how to respond to change. Add / change these lines:
onRegisterApi: function(gridApi) { grid = gridApi.grid; gridApi.edit.on.afterCellEdit($scope, function(rowEntity, colDef) { alert(rowEntity.name + ' ' + rowEntity.gender); }); }
A warning appears when you leave edit mode. for example, Click outside the cell.
Hope this helps.