When I click on the an element or filter a column in agGrid it sometimes triggers a change from localhost:8051/mypage to the page localhost:8051/undefined equal to “mypage” but it also reloads the state of agGrid and deselects/defilters everything back to the initial state.
I also keep getting popups with:
Bad message format
Cannot read properties of undefined (reading ‘pageScriptHash’)
import pandas as pd
from st_aggrid import AgGrid, ColumnsAutoSizeMode, GridOptionsBuilder
from st_pages import add_page_title, show_pages_from_config
add_page_title()
show_pages_from_config()
dataframe=pd.DataFrame({"values":[1,2,3,4,5,6,7,8,9,10],other:[1,1,3,4,4,5,6,6,4,9]})
grid_options_builder = GridOptionsBuilder.from_dataframe(dataframe)
grid_options_builder.configure_selection(
use_checkbox=True,
selection_mode="multiple",
)
grid_options_builder.configure_columns("values", wrapText=True)
grid_options_builder.configure_columns("values", autoHeight=True)
grid_options = grid_options_builder.build()
aggrid_return: dict = AgGrid(
dataframe,
height=500,
columns_auto_size_mode=ColumnsAutoSizeMode.FIT_ALL_COLUMNS_TO_VIEW,
gridOptions=grid_options,
use_checkbox=True,
# reload_data=True,
key="key",
)