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

get selectected row_index #49

Closed
nathalieGG opened this issue Dec 1, 2021 · 3 comments
Closed

get selectected row_index #49

nathalieGG opened this issue Dec 1, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@nathalieGG
Copy link

Great tool !

When using configure_selection, it would be nice to get not only the selected rows but also the selected indices.

gb.configure_selection(selection_mode="multiple", use_checkbox=False,  pre_selected_rows=[selectedinx])
gridOptions = gb.build()
data = AgGrid(
        shows,
        gridOptions=gridOptions,
        allow_unsafe_jscode=True,
        update_mode=GridUpdateMode.SELECTION_CHANGED 
    )

Example of returned data expected

{ "data" : myPandasDataFrame,
"selected_rows : [ {myselectedRow1},{myselectedRow2}],
"selected_indices" : [ 4, 8 ]
} 

I use Aggrid to select a row, then display it and edit, and then I went to move to the next row, which requires to know the indice of selected row

Thanks

@PablocFonseca PablocFonseca added the enhancement New feature or request label Jan 24, 2022
@PablocFonseca
Copy link
Owner

It wil be done soon!
I'll improve grid return

@ssegal100
Copy link

Hello. Is capability available? Thanks.

@mirfan899
Copy link

Hi, any update on this issue?

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

No branches or pull requests

4 participants