Reputation: 472
In AngularJS ag-grid, how can I get new columns width after resizing ?
Here is part of grid configuration :
$scope.gridOptions = {
enableColResize: true
};
Thx
Upvotes: 2
Views: 5682
Reputation: 11
$scope.resizeGrid-function(grid) {
setTimeout(function() {
grid.$gridServices?.DomUtilityService.RebuildGrid(grid.$gridScope, grid.ngGrid);
}, 100);
}
To fix the shrinkage issue of aggrid in angular js.
Use above function to fix the issue and just pass your grid in this function.
This solution only works for angular js not for angular.
Upvotes: 0
Reputation: 472
gridOptions.columnApi.getColumnState();
returns informations about columns : https://www.ag-grid.com/javascript-grid-column-api/index.php
Upvotes: 2