Hello! How do I ensure the horizontal scroll bar is appearing when I set the Ag-Grid height shorter than the length of the table?
When I remove the ‘height=400’ → the table becomes way too long but it does show the horizontal scroll bar at the bottom.
gb1 = GridOptionsBuilder.from_dataframe(df)
gb1.configure_default_column(groupable=True, enableRowGroup=True, aggFunc='sum', filterable=True)
gb1.configure_selection(selection_mode='multiple', pre_selected_rows=[0])
# Add checkbox to header to select/deslect all the columns
gb1.configure_side_bar()
gridOptions1 = gb1.build()
# Always show in case columns are expanded and then go past width
gridOptions1['alwaysShowHorizontalScroll'] = True
gridOptions1['scrollbarWidth'] = 8
grid_response1 = AgGrid(df,
gridOptions=gridOptions1,
allow_unsafe_jscode=True,
update_mode=GridUpdateMode.SELECTION_CHANGED,
enable_enterprise_modules=True,
#custom_css=custom_css,
columns_auto_size_mode=ColumnsAutoSizeMode.FIT_CONTENTS,
height=400)