How to always show the horizontal scroll bar in ag-grid?

Is it possible to always show the horizontal scroll bar in an ag-grid? This question was asked as an issue on their GitHub page, but they seem to have ignored it (best I can tell, it was not created in their own issue tracker).

I'm open to official solutions, CSS hacks, anything that works really.

1 answer

  • answered 2018-10-12 08:48 Paritosh

    You could set it by CSS

    .ag-body-viewport-wrapper.ag-layout-normal {
      overflow-x: scroll;
    }
    

    For live example, refer to this Plunk

    Try removing columns from column-menu and you'll see that scrollbar is getting displayed anyways.