ag grid horizontal scroll
Are you sure is because of the number of columns? I had the same problem and the solution was take off the pinned option of every column.
For example if you have this:
{headerName: "Athlete", field: "athlete", width: 150, pinned: 'left'}
it has to be:
{headerName: "Athlete", field: "athlete", width: 150}
How to always show the horizontal scroll bar in ag-grid?
2022 Update
const gridOptions: GridOptions = {
alwaysShowHorizontalScroll: true
}
https://www.ag-grid.com/javascript-data-grid/grid-options/#reference-scrolling-alwaysShowHorizontalScroll
Ag-grid prevent horizontal scroll when resizing screen
Use this in your css:
.grid {
overflow-x: hidden;
}
Related Topics
How to Disable Auto-Play for Local Video in Iframe
Html and CSS Are Not Linking/ Communicating
Prevent Child Div from Overflowing Its Parent Container When Resizing the Page
Angular - Show Empty Row by Default in Drop Down List and Disable Button
How to Vertically Align Text in Input Type="Text"
Rendering HTML Content With @Html.Raw in Razor Mail Template
How to Automatically Set Text Box to Uppercase
Fill Svg Path Element With a Background-Image
Css Negation Pseudo-Class :Not() For Parent/Ancestor Elements
How Can the Parent Div Auto Resize Its Height Based on the Child'S Height
How to Set Space Between Contained Divs
How to Type Text With Hat "^" in HTML
How to Disable Hover Effect for Active Link
Make Div (Height) Occupy Parent Remaining Height
Html Wont Link to CSS File in Visual Studio Code