-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grand totals at bottom of columns #252
Comments
@mc-its-sorted It looks like the correct implementation is: # Remove the groupIncludeFooter parameter from the configure_column method
gb.configure_column(field='profit', sort='asc', aggFunc='sum')
# Instead use the configure_grid_options method to include the groupIncludeFooter AND the groupIncludeTotalFooter parameters.
gb.configure_grid_options(groupIncludeFooter=True, groupIncludeTotalFooter=True) |
Ag-grid 31.3.0 changed how total rows are handled here: https://ag-grid.com/archive/31.3.0/javascript-data-grid/grouping-footers/ likely the new way to do this is: gb.configure_grid_options(groupTotalRow='bottom', grandTotalRow ='bottom') |
Thanks Steve |
Hello, I'm able to get gb = GridOptionsBuilder.from_dataframe(df)
gb.configure_grid_options( ..., groupTotalRow='bottom', grandTotalRow='bottom',...)
gridOptions = gb.build()
# Display the grid
grid_response = AgGrid(
df,
gridOptions=gridOptions,
allow_unsafe_jscode=True,
data_return_mode=DataReturnMode.AS_INPUT,
update_mode=GridUpdateMode.VALUE_CHANGED,
) start streamlit app grid_response.event_data is None # returns True edit cell value grid_response.event_data is None # returns True This only happens when I enable Thanks, |
hi
Awesome to use this in streamlit
I'm trying to get grand totals at the bottom of columns.
I'm trying this:
alas not working ... is this supported ?
Any help appreciated
Thanks
Mark
The text was updated successfully, but these errors were encountered: