I want to implement a Datepicker just like the one listed here.
But my problem with this one is I always have to click another cell or press enter/tab to confirm the input.(Stopping the edit)
How can i adjust this so that just clicking any other element or just clicking outside the table stops the “edit mode”.
Do you have any ideas how I could accomplish this?
I ran into this last week as well. If you set this in the dashGridOptions = {“stopEditingWhenCellsLoseFocus”: True,} you get a weirder behavior where it fails to lose focus or commit the change, then scrolls the window to the top, at least in my current app. I chased the issue for a while without finding a solution and ended up instructing users that after setting a date, click into another cell and press enter so as to ensure everything is committed to the rowData.
I more or less settled on hoping AGGrid 30 would be implemented with native date picker support prior to me releasing this app, and if not, I planned to try to contribute towards that work.
Nice to see im not the only one having problems. I have basically 0 experience with JS so i thought maybe its just me.
yeah did the same i just have a Tooltip saying they need to click any other cell and a Modal with a list of all detected dates so they can see if anything is missing.
I guess i will wait too. But this has been a problem for a long time i think. I tried it first 6 Months ago.
I have AG Grid 2.3.0 but this does not work for me.
Could you give a list of your package versions?
Maybe something else is different. Btw im using python 3.9 but that shouldn’t change anything.
I did update to dash-ag-grid==2.3.0 and still experiencing the same behavior. Best way to describe it is that I have a aggrid towards the bottom of the page. Click in a datepicker field and the date picker comes up. Select a date and the page scrolls back to the top as if focus is being sent to another item. No date is submitted to the field and the date picker is still visible.
If I ever get that portion fixed, I’ll update back here.