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

Provide a way to programmatically select a cell #45

Open
bertbarabas opened this issue Nov 7, 2024 · 4 comments
Open

Provide a way to programmatically select a cell #45

bertbarabas opened this issue Nov 7, 2024 · 4 comments
Assignees

Comments

@bertbarabas
Copy link

Looks like setFocusedCell of ag_grid would provide this ability if it was available to call in reflex

Copy link

linear bot commented Nov 7, 2024

@Lendemor
Copy link
Collaborator

Lendemor commented Nov 8, 2024

Should be possible with #46 :

ag_grid.api(id="grid_id").set_focused_cell(*args)

@linear linear bot assigned Lendemor Nov 8, 2024
@Lendemor
Copy link
Collaborator

@bertbarabas Have you had the chance to try this?

@bertbarabas
Copy link
Author

@Lendemor I can't get it to work.

Guessing about the args I used:
ag_grid.api(id="AccountPeriods").set_focused_cell({"rowIndex": 5, "colKey":"Description"})

AccountPeriods is is the id of my ag_grid
I hard coded rowIndex as 5
And I have a column def with both field and colId set to "Description"

But it doesn't seem to do anything and there are no exceptions.

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

2 participants