-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When grid grouping and freezing columns are used together, the display is not normal #443
Comments
This might be similar to PR #429 @gavingallagher |
@songjiqiang So basically the 2 containers are similar to this, also the right container has no column in its cells which is why it shows totally white on the right. <!-- left container (with grouping text) -->
<div class="grid-canvas grid-canvas-top grid-canvas-left" >
<div class="ui-widget-content slick-row even slick-group slick-group-level-0" style="top:0px">
<div class="slick-cell l0 r6 cell-selection frozen">
<span class="slick-group-toggle expanded" style="margin-left:0px"></span>
<span class="slick-group-title" level="0">Duration: 5 days <span style="color:green">(50000 items)</span>
</span>
</div>
</div>
<!-- right container (there are no text) -->
<div class="grid-canvas grid-canvas-top grid-canvas-right">
<div class="ui-widget-content slick-row even slick-group slick-group-level-0" style="top:0px">
</div>
</div> I found a quick CSS trick to see the grouping text with .slick-group-title {
position: fixed;
background-color: white;
} So I think this explains well the problem but I'm not sure how that can be fixed. I'm not sure if If someone has a way to bypass this issue, please let us know. |
@songjiqiang, I had the same problem. Can you try setting the width of the grid container before rendering the grid/ Slick.Grid() call. It solved my problem. In my case what happens is width : 0px for grid so non-frozen part was not displayed (in my case non-frozen part of grid) . |
@Hunt05 |
@ghiscoding, I have raised a pull request to add example file for frozen columns and cell grouping. In this example, width is not set before rendering the grid it is already provided in div#myGrid. Thanks. |
I saw but unfortunately, that doesn't seem to fix the issue if we put the freeze on first column, Did I miss something? I'd be interested to know if you really got this behavior fixed. |
Sorry, I misunderstand the issue. My problem is not with the group header it is with displaying the cells by setting width. |
Just to clear, you don't have a fix for this opened issue then? correct? |
Yes, It is still open. Example can be used for frozen columns with cell grouping. |
Do you mean cell colspan? I don't see that in your example, can you maybe make a print screen of what you mean? |
I thought I had a hack, but it's not quite working .slick-group, .slick-viewport-left, .slick-pane-left, .frozen.true {
overflow: visible !important;
} // grouping row html <div style="position: absolute;">
<div style="width: 97vw; overflow: visible;">
A really long header text that causes overflow past frozen column boundary
</div>
</div> Bug: Disables vertical scrollbar, so it only works if you don't have very many rows. Mousing over grouping row causes it to flicker. Other Notes:
|
I found an alternative workaround. Use a short group header with a bootstrap tooltip on hover. Bootstrap uses popper.js which adds elements to the body but positions them correctly using javascript. This allows it to avoid the clipping issue of the scroll area. Bootstrap tooltips are a bit tricky with dynamically rendered elements, especially since Slickgrid uses virtual scrolling & removes elements from the DOM when outside the viewport. I added a setTimeout in the grouping formatter function to call bootstrap tooltip immediately after rendering the html. I tried converting the tooltips to 'manual' trigger & have them always visible, but it caused overflow problems when scrolling a row completely out of the grid viewport. |
@ghiscoding we are facing this issue where due to pinned columns, grouped cells are misaligned to the left of the pinned columns. Is there any solution? |
You should read the entire thread... |
I read the entire thread but still there is no conclusion on the issue. Not sure if I am missing anything. As you mentioned in one. of the thread that pinned columns treats whole grid in different left and right area. Due ot this the right. grouped cells does not display data |
Well this issue is still open because it was never fixed and that is because no one could find a way to fix the issue with plain CSS. So no there is no fix at this point and even the paid Ag-Grid seems to behave similarly. So the only real fix is to never pin just 1 column because you're seriously looking for trouble. if you find valid CSS to fix the issue then please contribute to the project, other than that, there is no need to comment further on this issue without a real fix |
When grid grouping and freezing columns are used together, the display is not normal.
The left side of the frozen column is shown as blank
The text was updated successfully, but these errors were encountered: