문제

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