ui grid selection column row height
Hi Team,
I have increased the row height in UI Grid using the below CSS. I need dynamic rowHeight.
[ui-grid-row] {
display: table-row;
}
.ui-grid-row, .ui-grid-cell {
height: auto!important;
}
.ui-grid-cell {
float: none;
display: table-cell;
}
.ui-grid-header-cell, .ui-grid-cell-contents {
white-space: normal;
padding: 2px;
word-break: break-word;
}
But the issue is, When i inject ui-grid-selection component into the grid. UI Grid row height is not in sync with ui.grid.selection column cell.
Could you please suggest how to proceed furthur on these.
Thanks, Mohan Reddy M. @angular-ui-grid
You can try the below code.
.ui-grid-viewport .ui-grid-cell-contents {
word-wrap: break-word;
white-space: normal !important;
overflow:visible;
}
.ui-grid-cell {
display : table-cell;
height: auto !important;
overflow:visible;
position: static;
}
.ui-grid-row {
height: auto !important;
display : table-row;
position: static;
}
.ui-grid-row div[role=row] {
display: flex ;
align-content: stretch;
}
I tried the new css but still grid row is not in sync with ui.grid.selection column cell. Could anyone please suggest how to proceed further.
Now i'm facing one more issue. Actually i have two grid in single page. When user clicks a row cell in first grid, then a row from second grid has to be selected. And I have increased the height all the rows in second grid using the above specified css. Now while invoking the function scrollToFocus function is not scrolling to the specified rows in the second grid. Anyone please help I'm new to Angularjs
HI @alangumer, @jibap, @PaulL1 , @c0bra, @calopez, Could you please suggest us how to solve the scrolling issue if we increase the height of grid rows using solution provided in #3239, #2746( CSS and AlignContainers function)
Issue: Increased the rows height based on content using above help provided by @alangumer and @jibap. But scrollToFocus or scrollTo function is not correctly scrolling to exact row.
Thanks, Mohan Reddy M.
Anything changed in this topic ? I need his also, it's quite natural behav. it's quite poor that ui-grid doesn't have it.
+1
+1
+1
+1
+1
+1
try this: .ui-grid-selection-row-header-buttons { display: flex !important; }
Hi
try this: .ui-grid-selection-row-header-buttons { display: flex !important; }
Put the above code, selection column it does not fit the size. Help.
+1
+1
Same issue here. Would be great to get some input from developers ;)
I'm having the same issue here and the only possible solution I can think of is creating a custom select column, that will get the other column's widths.
Any progress on this?
Thanks for contributing! This repository has been transferred, and we're preparing the new 5.x release. We're closing older issues and pull requests as part of the reset. Please join us on Discord to follow the work or continue the conversation: https://discord.gg/Baz4w8ZWN