I need a table where I can display rows grouped by one column.
But at the same time all rows should be selectable with checkboxes. So that I can download the selected rows only via a download button.
I can get the grouped rows to work and also the selectable rows but not at the same time (checkboxes don’t show up).
Is that even possible at the moment?
@PablocFonseca thank you so much for creating this Ag-Grid integration, it’s super useful. Just wanted to let you know that I’m encountering exactly the same issue as @dmenini - only the upper two rows are displayed when using gb.configure_auto_height()!
Can someone explain what is the effect of assigning update_mode = GridUpdateMode.MODEL_CHANGED in the main AgGrid() function? All other update modes are self-explanatory except this one.
I have a small model in Excel to project sales and profits (see below). I would like to publish it in streamlit to let users edit the blue parts directly in an app (instead of Excel).
Has anyone ever built something like that in streamlit using Ag-Grid (or anything else)? Is that feasible (with the formats, etc.)
Hello everyone
I’m trying various things with streamlit-aggrid, but I want to display Sparkline in some columns of python’s pandas data frame. What is the method?
Hi all, I’ve run into a weird bug where using the pre_selected_rows option causes Ag-Grid to repeatedly re-render in my app in an endless loop (see code below). If I simply turn off this option, everything works fine. Has any one else run into this and might have some pointers?
# DATA VIZ & REPORTING PAGE
elif app_page == "Visualize & Report":
# if user comes here without first selecting data...
if st.session_state.user_selected_data.size == 0:
st.error("Oops! No summary table of data has been created yet. Please use to the 'Search & Filter' page to create a summary table of sealants data. Afterward, return to this page to build visualizations and/or reports of that data.")
else:
st.markdown("### Summary Table")
# display interactive table of data returned from above search & filter
gb_graph = GridOptionsBuilder.from_dataframe(st.session_state.user_selected_data)
gb_graph.configure_pagination()
gb_graph.configure_selection(selection_mode="multiple", use_checkbox=True, pre_selected_rows=[1,2,3])
user_selected_data = AgGrid(st.session_state.user_selected_data, gridOptions=gb_graph.build(), update_mode=GridUpdateMode.SELECTION_CHANGED)
graph_data = pd.DataFrame(user_selected_data["selected_rows"])
Does anybody know, why NULLs come into aggrid as strings containing ‘None’? I have tried to explore if any grid parameters are responsible for that, no idea so far…
Hi, when we use the enterprise modules (either with the sidebar or without) and we deselect some column/s so it/they is/are not displayed is it possible to get the new reduced view returned or to find out what columns are hidden.If something changes it still returns all of the columns but in my code I have no way of determining what the user didn’t want to see. This is something I am chasing for dynamic plotting where I might do a stacked bar plot but the user wants the option to turn columns on or off.
In this case short of deselecting them prior to constructing the AgGrid I cant find out how to get the information out of AgGrid. If I have to do that then hiding the columns in the grid but selecting/deselecting is just for looks only yes?
Love the package! However, I’ve been having trouble implementing this functionality: How to add buttons in ag-Grid cells. Did anyone have any success with this?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.