css - Horizontal scrollbar with pinned column in AG Grid - Stack Overflow

I have below AG Grid table wrapper in Svelte project. I have 2 pinned columns on left adn right side an

I have below AG Grid table wrapper in Svelte project. I have 2 pinned columns on left adn right side and have 5-6 columns in between which are not pinned and scrollable in x direction. I can Scoll using mouse but do not see the scrollbar. How can see the scrollbar again.

<div bind:this={gridContainer} class="ag-theme-alpine grid-container"></div>

<style>
    :global(.grid-container)  {
        width: 100%;
        height: 100%;
    }
    :global(.ag-center-cols-viewport) {
        overflow-x: auto !important; // tried "scroll" as well
        overflow-y: hidden !important;
    }

I have below AG Grid table wrapper in Svelte project. I have 2 pinned columns on left adn right side and have 5-6 columns in between which are not pinned and scrollable in x direction. I can Scoll using mouse but do not see the scrollbar. How can see the scrollbar again.

<div bind:this={gridContainer} class="ag-theme-alpine grid-container"></div>

<style>
    :global(.grid-container)  {
        width: 100%;
        height: 100%;
    }
    :global(.ag-center-cols-viewport) {
        overflow-x: auto !important; // tried "scroll" as well
        overflow-y: hidden !important;
    }
Share Improve this question asked Mar 12 at 17:17 JanJan 192 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

CSS example on this matter from a previous question: How to always show the horizontal scroll bar in ag-grid?

In there is a css example of how it could work for you, however you could also play around with the alwaysShowHorizontalScroll from the AG-Grid grid options AG-Grid Grid Options Docs

If that doesn't solve it, in the grid options add suppressHorizontalScroll: false to see if your horizontal bar is hidden due to possible settings within your own gridoptions

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744737210a4590821.html

相关推荐

  • css - Horizontal scrollbar with pinned column in AG Grid - Stack Overflow

    I have below AG Grid table wrapper in Svelte project. I have 2 pinned columns on left adn right side an

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信