0

I'm using AngularGrid to show a grid with several fixed width columns. The grid itself should take the whole page, except for the left column of the page. That part works, using a css calc.

Now, I want one of the grid columns to fill up the rest of the available width inside the grid. Is it possible to do that with ag-grid built ins?

HTML:

<div ag-grid="gridOptions" style="height: 500px; width: calc(100% - 150px)"></div>

Script:

$scope.gridOptions = {
  columnDefs: [{
    headerName: 'First',
    width: 150
  }, {
    headerName: 'Second',
    width: // whatever is available (should be calc(100% - 250px))
  }, {
    headerName: 'Third',
    width: 100
  }]
}
3
  • stackoverflow.com/questions/8190909/… Commented Sep 18, 2015 at 14:46
  • Doesn't help, ag-grid is not a table. Commented Sep 18, 2015 at 14:48
  • Do you need a responsible layout? Commented Sep 18, 2015 at 17:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.