ui-grid
ui-grid copied to clipboard
ng-grid not rendering data when parent div is using ng-show
ng-grid is not rendering the data if the parent is hidden at load using ng-show. A use case is ng-grid shown in an overlay. I tried couple of solution which are working in ng-grid version prior 2.0.7 but not with 2.0.7 with angular 1.2.12.
ng-if might work as it will inject the content to the DOM and recreate the scope each time the expression is true, which is a costly operation if your content is static for an instance.
Another solution which is working is,
$scope.createGroupOptions.$gridServices.DomUtilityService.RebuildGrid(
$scope.createGroupOptions.$gridScope,
$scope.createGroupOptions.ngGrid
);
but i think this should be handled by ng-grid and there must be a simple solution to this.
Dupe of #855, including this same comment.