ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ng-grid not rendering data when parent div is using ng-show

Open theluckin opened this issue 12 years ago • 1 comments

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.

theluckin avatar Mar 07 '14 07:03 theluckin

Dupe of #855, including this same comment.

roblarsen avatar Mar 07 '14 12:03 roblarsen