Skip to content
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

Data of edited cells disappear after a couple of seconds #71

Open
RoteKekse opened this issue Mar 12, 2024 · 0 comments
Open

Data of edited cells disappear after a couple of seconds #71

RoteKekse opened this issue Mar 12, 2024 · 0 comments

Comments

@RoteKekse
Copy link

RoteKekse commented Mar 12, 2024

Dear widgetti,

thank you for your ag-grid python package.

I noticed that after some seconds (10-20 seconds) a simple grids cell's edits are overwritten with .grid_data_in:

from ipyaggrid import Grid 
import pandas as pd

df = pd.DataFrame(columns=["test1","test2","test3"])
for i in range(10):
    df.loc[len(df)] = pd.Series(dtype='float64')

grid_options = {
        'columnDefs' : [{'headerName':c,'field': c} for c in df.columns],
        'rowSelection': 'multiple',
        'enableRangeSelection': True,
        'defaultColDef': {'editable': True},    
    }
g1 = Grid(grid_data=df,grid_options=grid_options,sync_on_edit=True,sync_grid=True,theme='ag-theme-balham',columns_fit='auto',index=False)
display(g1)

reproduces the issue. Is there something one can do about it. Is this related to #38 ?
Thank you for your help :).

Best
Micha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant