Use browser level scroll instead of Grid Level (table level) scroll in ag-grid

我与影子孤独终老i 提交于 2019-12-11 20:39:36

问题


I am using ag-grid to show data but while using it I have 2 scroll bars one at grid-level and another at browser level I want to use browser level scroll bar for ag-grid. I didn't find any clue in the ag-grid documentation to implement this.


回答1:


You can use domLayout property for this.

Refer to this example how they have set domLayout = "autoHeight" and how it is being used: ag-grid Auto-Height

domLayout: Set to 'normal', 'autoHeight' or 'print' to switch between layout options. The default is 'normal'.



来源:https://stackoverflow.com/questions/52589587/use-browser-level-scroll-instead-of-grid-level-table-level-scroll-in-ag-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!