Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UI-GRID - Dynamic Row Height - Alternatives

I tried to get a cell to expand it's height dynamically.

Is there a way to adjust the height of a row(GridRow) after it is rendered?

If not, then I will try to use an expandable grid or tree in a grid.

Is it possible to display an expandable grid off a specific cell/column?

Currently I see all expandable grids/tree grids that take up the entire row below the parent.

Thanks

like image 899
Michael JDI Avatar asked Jun 11 '15 14:06

Michael JDI


1 Answers

Add this css to your styles:

.ui-grid-viewport .ui-grid-cell-contents {
  word-wrap: break-word;
  white-space: normal !important;
}

.ui-grid-row, .ui-grid-cell {
  height: auto !important;
}

.ui-grid-row div[role=row] {
  display: flex ;
  align-content: stretch;
}
like image 166
Amir978 Avatar answered Jan 03 '23 16:01

Amir978