I am using Angular UI-Grid v3.0.4. I am using columndef cell-template to get the required customization as below (I have ng-blur event and method within celltemplate).
$scope.gridOptions = {
showColumnFooter: true,
columnDefs: [
{
name: "SalesAmount", displayName: "Sales Amount"
},
{
name: "CommissionAmount", displayName: "Commission Amount", enableCellEdit: true, enableCellEditOnFocus: true,
cellTemplate: '<input type="text" ng-model="row.entity.pddCommissionAmount" ng-blur="updateEntitys(row.entity)"></input>'
}
]
};
ng-blur event does not fire its execution. Researched and add a custom ngblur directive to see if that helps
app.directive('ngBlur', function () {
return function (scope, elem, attrs) {
elem.bind('blur', function () {
scope.$apply(attrs.ngBlur);
});
};
});
$scope.updateEntitys = function (row) {
alert("Update Entitys within ngblur event");
}
This does not seem work either. Greatly appreciate any help with this.