Summary
Im using a dataframe which is being rendered from the postgres, after which im trying to display in streamlit edit for which im using Aggrid, code snippet attached for reference, in which im facing an issue here the rows are 1700+, whenever i use the height parameter is used in the aggrid i could not see the page slide option in the bottom right and when im not using the height parameter, then the page slide is showing and in which when i go the last page the page count is being increased each time intially it was 17 then 22 , 39 and 500+ pages with three rows in each page
Steps to reproduce
Code snippet:
gd = GridOptionsBuilder.from_dataframe(df_C)
gd.configure_pagination(enabled=True)
gd.configure_default_column(editable=True,groupable=True)
gd.configure_selection(selection_mode="multiple", use_checkbox=True)
gd.configure_grid_options(domLayout='normal')
gridoptions = gd.build()
grid_table=AgGrid(df_C,gridOptions=gridoptions,update_mode=GridUpdateMode.SELECTION_CHANGED,reload_data=True,width='100%',height=1000,
allow_unsafe_jscode=True,theme='alpine')
sel_row = grid_table["selected_rows"]
st.write(sel_row)
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Expected behavior:
Explain what you expect to happen when you run the code above.
Actual behavior:
Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.
Debug info
- Streamlit version: (get it with
$ streamlit version
) - Python version: (get it with
$ python --version
) - Using Conda? PipEnv? PyEnv? Pex?
- OS version:
- Browser version:
Requirements file
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
Links
- Link to your GitHub repo:
- Link to your deployed app:
Additional information
If needed, add any other context about the problem here.