I have the following scenario : I get data for UI grid and display it with ability to toggle header filters. Sometime later I need to request data again and also be able to toggle filters. My code only works the first time. After I request data again ( basically recreate what I do to initially setup the table) the filter no longer works. I have created a plunker that illustrates this http://plnkr.co/edit/KQbkGZQnjxCFTrS4Elgh?p=preview: click toggle Filtering button - see the filters ok. Then press: request data again - the filter no longer works. My suspicion is onRegisterApi method gets called only once although I'm not sure if that's it. Any help appreciated.
$scope.toggleFiltering = function(){
$scope.gridOptions.enableFiltering = !$scope.gridOptions.enableFiltering;
$scope.gridApi.core.notifyDataChange( uiGridConstants.dataChange.COLUMN );
};