Callback event for Datatable sorting action

Hi community!

I have set the sort behaviour of my datatable to sort_action="native"

Is it possible to trigger callback when you sort a datatable column using sort icon for each column? Just like how we can listen to the active_cell from a callback is it possible to get the updated data from the datatable after it’s sorted?

Hi @dataturnsmeon

You can listen to one of the derived_virtual_* props, for example:

derived_virtual_data (list of dicts ; optional): This property represents the visible state of data across all pages after the front-end sorting and filtering as been applied.

See more props here: Reference | Dash for Python Documentation | Plotly

1 Like