on ngGridEventEndCellEdit (angular grid) I need to know the index of the row edited: I saw that this event returns a parameter with many data but I don't have found it! :-(

$scope.$on('ngGridEventEndCellEdit', function (data) {
    console.log(data);
});
有帮助吗?

解决方案

This should give you all the information of the row you just edited.

$scope.$on('ngGridEventEndCellEdit', function (data) {
    if (!data.targetScope.row) {
        data.targetScope.row = [];
    }
    console.log(data.targetScope.row.entity);
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top