I currently have a DataTable that is constructed by the user with a dropdown that allows them to specify what columns they want visible and utilises the native filtering options. I want to now extend this such that when the user clicks on a specific cell, a PDF renders below. I have this working with the active_cell features but naturally ran into the issue that the indices aren’t updated upon filtering. When I filter, the active_cell is pointing to the old indexing prior to filtering.
This lead me to look into the derived_* options, but I’m unsure how they get updated upon selection. How do I get the callback to update the cell that is selected so I can reference it later in the callback? derived_selected_* always seem to be None or empty lists after selecting data in my DataTable.
Sounds like you are doing implementing some advanced features in a data table. Have you tried Dash AG Grid? It’s highly customizable. Here are some links to features you might be interested in:
Thanks for your speedy response. I have Ag Grid components working in other pages of my app and had previously attempted to get it working for this specific table with no success. However, upon looking at it again (thanks for pointing out some helpful pages) I was massively overcomplicating the logic and I believe I have this all working now. The click on cell feature is actually brilliant. I’ve still got some features to port over from DataTable but this specific problem has well and truly been solved. Thank you again!
Hey Tom … indeed, I default to telling anyone using the dash datatable … use Dash Ag-Grid … Great work by some great people → one of them notably being AnnMarie