How do I catch a new row before it's added to the data source in igniteui-angular? I tried using the event handing on my igGrid, but could not get it to work.
HTML:
<ig-grid id="gridShopShifts" data-source="shopShifts" width="100%" height="100%" primary-key="ShiftKey" auto-commit="true" auto-generate-columns="false" event-data-bind="shiftBindHandler()"> ..... </ig-grid>
Controller:
$scope.shiftBindHandler = function () { console.log('Called Handler'); }
Is this the proper way? Is there an easier way of handling this?
Figured it out myself.
<ig-grid .... event-data-bind="shiftBindHandler">
$scope.shiftBindHandler = function (e) { console.log('Called Handler'); }