We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://reflex.dev/docs/library/tables-and-data-grids/ag-grid/#editing
It seems the problem is in the state
class AGGridEditingState(rx.State): data: list[dict] = [] @rx.event def load_data(self): _df = pd.read_csv( "https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv" ) self.data = _df.to_dict("records") @rx.event def cell_value_changed(self, row, col_field, new_value): self._data_df.at[row, col_field] = new_value self.data = self._data_df.to_dict("records") yield rx.toast( f"Cell value changed, Row: {row}, Column: {col_field}, New Value: {new_value}" )
The _data_df is not a field on self, so it cannot be updated by cell_value_changed
_data_df
self
cell_value_changed
The text was updated successfully, but these errors were encountered:
ENG-4735 ag-grid editing example throws error when editing
Sorry, something went wrong.
No branches or pull requests
https://reflex.dev/docs/library/tables-and-data-grids/ag-grid/#editing
It seems the problem is in the state
The
_data_df
is not a field onself
, so it cannot be updated bycell_value_changed
The text was updated successfully, but these errors were encountered: