Is it possible to programatically update the scrolling point of the DataTable.
For example in Table Experiments gapminder example usage.py we can select the countries by clicking on figure with this call back.
@app.callback(
Output('datatable-gapminder', 'selected_row_indices'),
[Input('graph-gapminder', 'clickData')],
[State('datatable-gapminder', 'selected_row_indices')])
def update_selected_row_indices(clickData, selected_row_indices):
if clickData:
for point in clickData['points']:
if point['pointNumber'] in selected_row_indices:
selected_row_indices.remove(point['pointNumber'])
else:
selected_row_indices.append(point['pointNumber'])
return selected_row_indices
but now i also want to scroll the table to the last selected country so that the user can see interactively what was just selected. this could be very helpful if there is a lot of data 1000+ rows and you select one somewhere and the scroll the table to it rather than having the user try to go hunt to find what was just selected.
Well quick search says they have a property thatās supposed to do it called ScrollToRowIndex.
But thereās a recent issue out on it not working correctly, or only working on initial rendering:
maybe once thatās fixed there, at some point it can be exposed for use in Dash DataTable.
Hi, Iām looking to do the same scroll to a specific row after clicking in a component (timeline in my case). This is for a local monitoring system and the table is for logs.
Is there a way to execute some client side callback or something to scroll the table ? or an output prop that is not the table data to modify the viewport?
Hi everyone. Is there anything on this issue??? I am having a use case where in a dataframe, I have past and future dates. Where as I want to show the rows with the datetime.today as the top rows when the table is first rendered or the page is refreshed. Is that possible now?